Last Updated: February 25, 2016
·
379
· efrane

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.