get all the commits done by me in the last 5 days in git

command-line, git

Solution

Try `git log --since=5.days --author=roger`, assuming that `roger` is your username.

`--author` actually accepts a regular expression, so if you wanted to find either `roger` or `rachel`'s commits, you could do `git log --since=5.days --author="r(oger|achel)"`.

If you want to search on any branch and not just the current one, then also add `--all`.

Problem

I am not very good at sed or awk. Every friday I'd like to see all the commits done by me in the last 5 days, to find out what work I did. At this time the only command I know of is ``` git log --since=5.days ```

Original source