On suspicion, I tried "stat -c% y.git / FETCH_HEAD" and got a user-friendly timestamp:
> stat -c %y .git/FETCH_HEAD 2015-02-24 17:42:08.072094410 -0500
Alternatively, you can add when = !stat -c %y .git/FETCH_HEAD to the [alias] section in the ~ / .gitconfig file (the safest way to do this is by running the following command line in any git repository)
git config --global alias.when '!stat -c %y .git/FETCH_HEAD'
and then you can find this information with your new βcommandβ at any time:
> git when 2015-02-23 15:07:53.086254218 -0500
[Then it occurred to me to make a "man stat", and I found that there are several other parameters available for the "stat" program. YMMV.]
Paul McMullin Feb 24 '15 at 22:44 2015-02-24 22:44
source share