tags:

views:

49

answers:

1
+3  Q: 

Git commit date

Other than parsing git log for the date string, is there a Git native way to report the date of a certain commit?

+5  A: 

The show command may be what you want. Try

git show --format="%ci" <commit>

Other formats for the date string are available as well. Check the man page for details.

Tim Henigan
To get the commit without its diff, use `log -1` instead of `show`.
jleedev
Or add the '-s' to the command:`git show -s --format="%ci" <commit>`
aprock