How to find Git commits from the past week

You may find this little snippet useful for your weekly stand up reports.

This command counts all commits authored by “Joe” in the currently opened branch:

git log --since=7.days | grep Joe | wc -l

 

This command counts all commits authored by “Joe” in all branches:

git log --since=7.days --all | grep Joe | wc -l