I need the last commit date in git. This means the latest update date in my program.
I used the command : $ git log -1 but this command will give me the
git log -1
The following command will be helpful:
git log -1 --format=%cd
This will print the latest change date for one file. The -1 shows one log entry (the most recent), and --format=%cd shows the commit date. See the documentation for git-log for a full description of the options.
--format=%cd