Reputation: 4523
Let's say I do this command: git log -4 --pretty=format:%h
How do I add date/time to each result?
Upvotes: 6
Views: 8126
Reputation: 11808
For Committer Date use %cd:
%cd
git log -4 --pretty=format:"%h - %cd"
-
For Author Date use %ad:
%ad
git log -4 --pretty=format:"%h - %ad"
For more options refer this.
Upvotes: 13