DEV Community

Ben Halpern
Ben Halpern

Posted on

Git standup, how did I ever live without you?

I am sure you've been preparing for a meeting where a team typically discusses what they did yesterday and what they are planning to do today. These are often called "standup meetings". If you are anything like me, the "remember what you did yesterday" part does not always go as smoothly as it could. Panic typically ensues and I'd find myself putting in more work than I should need to in order to simply remember the day before.

I have been using git standup for about six months and I have been very pleased. It is a simple git extension that lists your commits from yesterday.

The basic git standup command will display the git commits you performed yesterday. There are nine more flags for modification of the timeframe and other goodies. It does not provide any particularly advanced functionality, but all in all, I have found this library to be a simple and intuitive part of my daily workflow.

Discussion (33)

Collapse
bahmutov profile image
Gleb Bahmutov

Now, if only it grabbed them across ALL my projects (or my org Git repos) and sent an email to everyone interested + dashboard that would be the best stand up tool!

Collapse
niaher profile image
niaher

And then we'd never need to talk to each other. Yay!

Collapse
happz profile image
Miloš Prchlík

How about this one github.com/psss/did/ ? It can grab "wth did I do last week??" data from other sources, not just git repos, see github.com/psss/did/tree/master/di... for the current set of plugins. It does not solve the "dashboard" part but it definitely produces something that can easily be copypasted into any "status report" e-mail :)

Collapse
x4121 profile image
Armin Grodon

I could help you on the "across ALL my projects" part. Wrote something similar to remember what I did (and where).

github.com/x4121/git-amnesia

Collapse
hawkinjs profile image
Josh Hawkins

This is a good idea - I may write a little node script to use this tool and do just this! :)

Collapse
bahmutov profile image
Gleb Bahmutov

Hit me up then, it would be great OSS or side project,

Thread Thread
enguerran profile image
enguerran 🐐💨
Thread Thread
zoidbergwill profile image
William

That didn't work for me, so instead I did the following to list all my git repos in ~/src

find . -depth -5 -type d -name ".git" | sed -e "s/\(\.\/\)\(.*\)\(\.git\)/~\/src\/\2/g" | tr '\n' ','
Enter fullscreen mode Exit fullscreen mode
Collapse
devdrake0 profile image
Si

I could probably add something like this to omgit

Collapse
niaher profile image
niaher

And then we'd never need to talk to each every again. Yay!

Collapse
timabell profile image
Tim Abell

Combine it with gist.github.com/timabell/1391205#f... perhaps

Collapse
jess profile image
Jess Lee (she/her)

😆

Collapse
lennartb profile image
Lennart

You can do something similar with TFS:

```tf history "$/" /recursive /user:YOURUSERNAME /noprompt | head -n NUMBEROFCHECKINS



and as a Powershell function:



```function tfhist {tf history "$/" /recursive /user:YOURUSERNAME /noprompt | head -n NUMBEROFCHECKINS}
set-alias standup tfhist
Enter fullscreen mode Exit fullscreen mode
Collapse
andrespineros profile image
Andrés Felipe Piñeros

Damn! I wish I only worked with one repository. Who isn't lazy enough to publish a bash script that starts at the parent folder, iterates all the subfolders (git projects), calls the standup command inside each and writes the results of all in a single file?

Collapse
timabell profile image
Tim Abell

Combine it with gist.github.com/timabell/1391205#f... perhaps

Collapse
dglambert profile image
Devin Gleason Lambert

I had such high hopes. Installed it only found 1 commit in the last 20 days.

Collapse
nektro profile image
Meghan (she/her)

A lack of activity doesn’t always mean it’s broken or out of date. It could just mean they finished.

Collapse
ben profile image
Ben Halpern Author

Yeah, especially for a personal utility that interacts with git. Not exactly Kubernetes-level stakes.

Collapse
laebshade profile image
Mark Shields

All hail the monorepode

Collapse
itsasine profile image
ItsASine (Kayla)

It took 3.5 years but I'm finally on board the git standup hype train. I worked on like 8 tickets yesterday and remembered there was a way to get a summary of all my commits to just look at that instead of tracking it down in Jira haha

Collapse
tactics profile image
tac-tics

Very neat.

But does the install really require sudo for such a trivial task? I would use this if I could install it in userspace.

Collapse
fakerr profile image
Walid Berrahal

If you like git-standup, you may also find this one interesting :)
github.com/Fakerr/git-recall/

Collapse
rubyandcoffee profile image
Alexandra Wolfe

Never heard of this before, thanks for sharing! I've just installed it :)

Collapse
ben profile image
Ben Halpern Author

woot!

Collapse
hawicaesar profile image
HawiCaesar

This will save me a lot of time before stand ups meetings :-). Got to try it out

Collapse
sbimochan profile image
Bimochan Shrestha

Dayumm

Collapse
hytonevi profile image
Ville Hytönen

Just wow, need to get it straight away

Collapse
nottylerjames profile image
Tyler Healey

What is that terminal that's being shown in the gif that shows the git branch you're working on?

Collapse
nottylerjames profile image
Tyler Healey

For those wondering the same:

Add Git Branch Name to Terminal Prompt (Mac)

Collapse
justynclark profile image
Justyn Clark

Nice. But all of this already exists in the built-in Version Control Logs and Local History in my Jetbrains IntelliJ IDEA Ultimate.

Level up you VS Coder folks and get a real IDE :)

Collapse
karataev profile image
Eugene Karataev

+1. Any modern IDE with GIT integration provides this functionality with clear and nice graphics interface out of the box.

Collapse
vip3rousmango profile image
Al Romano

Shots fiiiiiired.

Collapse
justynclark profile image
Justyn Clark

🤣