git today: know your work

Good one 🙂


Do you want to know all your git commits from different repositories and even from different branches?

First, create this alias:

git config --global "log --since=midnight --author='John Roy' --oneline"

Here replace author name with yours.

You can avoid hard-coding your name as follows:

git config –global ‘!git log –since=midnight –author=”$(git config” –oneline’

Then, before leaving office for a well-deserved rest, you can reflect on what you’ve accomplished during your working day by issuing this simple command:

git today

That’s it 🙂

View original post


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s