-1

git log will show the original commit date even if the commit gets amended or rebased. Is it possible to show the time of last such operation?

chx
  • 11,270
  • 7
  • 55
  • 129
  • 2
    Amending *does* change the commit date, if you also want to change the author date see e.g. https://stackoverflow.com/q/454734/3001761 – jonrsharpe Feb 06 '20 at 19:23
  • Thanks for the link and the helpful "author date" suggestion, I can answer myself now! – chx Feb 06 '20 at 19:37

1 Answers1

1

git stores two dates on a commit: author date and commit date. By default, the author date is shown. git log --format=fuller shows both. Also, git log --format=format:%ad%cd will show the author date and the commit date respectively, there are many options for both, see man git log for more.

chx
  • 11,270
  • 7
  • 55
  • 129