Get the timestamp a file was first added to a git repository
To get the timestamp a file was first added to a git repository, use the following command: 1
git log --follow --format=%ad --date default <FILE> | tail -1
For a timestamp in ISO 8601 format, use
iso-strict
instead of
default
. 1