0

I use git status to check when a file was modified.
But I want to know the exact date & time of the modification. Is there a command for that?

I know I can use Finder to check the date and time of the Last Modified. But a command would be much better.

Thanks.

Paul R
  • 208,748
  • 37
  • 389
  • 560
Ennabah
  • 2,303
  • 2
  • 20
  • 39
  • Possible duplicate of [git status - list last modified date](https://stackoverflow.com/questions/14141344/git-status-list-last-modified-date) – Gino Mempin Jul 20 '17 at 09:36

2 Answers2

2

No, there's no git command to do this. You can use ls to list the last modified time from the command line (ls -l file will show the last modified time) or use stat (stat file or stat -x file for a more verbose output).

John Szakmeister
  • 44,691
  • 9
  • 89
  • 79
0

I don't know if the command exist on Mac, but stat would be a good solution.

zigarn
  • 10,892
  • 2
  • 31
  • 45