Git: Get all commits of a file, displaying shortened hash and time code only
git log --format="%h %ci" --date-order <filename>
This uses the ISO 8601 date format, some other possible date formats are:
%cD
for RFC 2822 date format, %ct
for Unix timestamps.
Written by eFrane
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#