0

When we performed a "git add" the date of file was changed to current date.

IvanCl4udio
  • 55
  • 1
  • 6
  • Possible duplicate of [Checking out old file WITH original create/modified timestamps](http://stackoverflow.com/questions/2179722/checking-out-old-file-with-original-create-modified-timestamps) – sleske Feb 22 '16 at 21:07

1 Answers1

1

git does not track time stamps and it does not change your file timesatmp when you add it to the stage area.

Here is a live demo to show you that git does not care about dates. git only track content and in some cases file mode (chmod)

enter image description here

CodeWizard
  • 128,036
  • 21
  • 144
  • 167