git today: know your work

Good one 🙂

Nakshtra

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

First, create this alias:

git config --global alias.today "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 alias.today ‘!git log –since=midnight –author=”$(git config user.name)” –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

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s