Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Git log show all of today's commits?

Tags:

git

git-log

I want to be able to see all of the commits I made today using git log. I came up with git log --after="yesterday"
However, that seems a little awkward to me, is there a simpler command to achieve the same effect?

like image 964
ab217 Avatar asked Feb 25 '11 03:02

ab217


3 Answers

Edit: Since this is the accepted answer I can't delete it, so I'm posting here @Simon's answer:

git log --since="6am"

And of course you can adjust the time to whatever is "morning" enough for you :)

like image 81
abyx Avatar answered Nov 10 '22 14:11

abyx


Maybe the best is to use

git log --since="6am"

You can adjust the time to your convenience ;)

like image 39
Simon Avatar answered Nov 10 '22 13:11

Simon


To get commits from all of today ...

git log --since=midnight
like image 27
yoyo Avatar answered Nov 10 '22 14:11

yoyo