Getting a file’s creation and modification time
To get the time a file was first added to a git repository and when it was last modified, use the following command: 1
If you need to be more selective about which commits should count based on what changed, you can view every commit a file was added or modified in along with a diff showing that happened with the following command: 1