Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Created December 16, 2014 10:53
Show Gist options
  • Save lukehedger/b5ec2bd59c11242d5472 to your computer and use it in GitHub Desktop.
Save lukehedger/b5ec2bd59c11242d5472 to your computer and use it in GitHub Desktop.
Git today, git yesterday
# get a log of today's commits
$ git config --global alias.today '!git log --since=midnight --author="$(git config user.name)" --oneline'
$ git today
# get a log of yesterday's commits
$ git config --global alias.yday '!git log --graph --since=day.before.yesterday.midnight --until=midnight --author="$(git config user.name)" --oneline'
$ git yday
@lukehedger
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment