Skip to content

Instantly share code, notes, and snippets.

@phalkunz
Last active December 19, 2015 15:09
Show Gist options
  • Save phalkunz/5974177 to your computer and use it in GitHub Desktop.
Save phalkunz/5974177 to your computer and use it in GitHub Desktop.
Git report today with yourself an author If you want (or you are asked) to review what you have done today the following command does just that.
git log --since='1am' --author=$(git config user.email) --format='%h — %an (%ar) %s'
# Output with colors
# $ git log --since='1am' --author=$(git config user.email) --format='%Cred%h%Creset — %an (%ar) %Cgreen%s%Creset'
# To set up git alias, run the following command once
# $ git config --global alias.log-today "log --since='1am' --author=$(git config user.email) --format='%h — %an (%ar) %s'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment