title = "Git Log: What did I do yesterday, exactly?"
tags = ["git"]
slug = "git-log-what-did-i-do-yesterday-exactly"
+++
Sometimes you have to take your git repository's log to see what you did the day before (ideal in preparation for the daily stand-up). What I want is a clean overview of each commit messages, their author and the time. The output result should be easily grep-able so I can filter stuff I don't need out.
~
To do this, I use the following custom `git log` command:
c5efbf4 - ariejan@ariejan.net - 2011-04-22 12:07:41 +0200 - Truncate long URLs in the back-end to maintain a correct layout.
```
Now, it's easy to see what I did on april 22nd using grep
``` shell
git log <snip> | grep 2011-04-22
```
You can also filter on email address to select only specific user etc. Of course, all this could be done with git, but I'm way more comfortable using grep.
To make life easy, you can create a shortcut for this log command. Add this to you `~/.gitconfig`: