Home > Software engineering >  How to make `git log` show only the commit date, nothing else
How to make `git log` show only the commit date, nothing else

Time:03-08

I just want to get a quick glance at the history of a project by having git log show only the commit date, nothing else. How can we best do that?


Update: it turns out I was actually asking for the author date, which is what is shown by git log. To see the committer date too, which can be different, run git log --pretty=fuller.

See also here: Why is git AuthorDate different from CommitDate?

To help make this point that there are different dates: to set an author date when running git commit, use:

git commit ---date "<date>"

To set also the committer date, you'd have to do:

GIT_COMMITTER_DATE="<date>" git commit --date "<date>"

See here: How can one change the timestamp of an old commit in Git?

CodePudding user response:

If you want to see only the committer date (the date the commit was written with it's current ID):

git log --format=           
  • Related