Is there a way to cause git-reflog to show a date alongside each entry?

Andrew Ferrier picture Andrew Ferrier · Jun 28, 2013 · Viewed 57.3k times · Source

The git-reflog command doesn't by default show a date alongside each entry, which strikes me as a strange oversight; I think this would be very helpful.

Are there any command-line options, or other tweaks, which can be employed to cause it to show when each reflog entry was added? The manpage isn't forthcoming...

Answer

Balog Pal picture Balog Pal · Jun 28, 2013

Per the man page, you can use git log options, e.g.,

git reflog --pretty=short

git reflog --date=iso