get the last modification data of a file in git repo
问题 Im trying to find the command to get the last modified date of a file in a local git repo. Created the repo and have done one commit. Had to edit one file and will commit this file but was wondering what the last modification data of the file in the repo is (not the commit date). Have no gui onl command line. git log ./path/to/filename.php only gives me the commit date 回答1: The correct way to do this is to use git log as follows. git log -1 --pretty="format:%ci" /path/to/repo/anyfile.any) -1