Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git log --since=<date> options [duplicate]

Tags:

git

I'm currently learning Git by following the book "Pro Git".

In the book, when discussing different options for git log --since=<date>, the author said some of the potential options for the <date> are

git log --since=2.weeks
git log --since="2008-01-15"
git log --since="2 years 1 day 3 minutes"

I was wondering, where can I find a complete list of what I can use as a date format in the --since=<date> option?

I have looked at the git log manpage on git-scm.com as well as searched the git-scm.com but I can't find it.

like image 262
Thor Avatar asked Oct 29 '22 04:10

Thor


1 Answers

Check out this answer.

It goes into good detail about the current and historical options. Particularly, formats can follow RFC2822, ISO8601, or have relative formats, which is what you had in your question.

like image 107
jhpratt Avatar answered Nov 15 '22 06:11

jhpratt