views:

58

answers:

3

I am not very good at sed or awk. Every friday I 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
+4  A: 

Git supports searching based on the author as well

git log --since=5.days --author=Roger
Paul McMahon
+9  A: 

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)".

John Feminella
+2  A: 

To limit commits to yourself, pass the --author flag to git log, as in git log --since=5.days --author='Your Name'.

If you want less information than the git log default output, you can play around with the formatting options a bit. git log --since=5.days --oneline will show you a one-line summary of each commit from the past 5 days (the one-line summary will contain the abbreviated SHA1 hash of the commit as well as the first line of the log message). Or git log --since=5.days --format=%H will show only the full SHA1 hash of the commits from the past 5 days.

mipadi