Let\'s say I do this command: git log -4 --pretty=format:%h
How do I add date/time to each result?
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.