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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With