IvanCl4udio
IvanCl4udio

Reputation: 55

Is it possible to add a file to a git repo keeping its original date?

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

Upvotes: 0

Views: 33

Answers (1)

CodeWizard
CodeWizard

Reputation: 142114

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

Upvotes: 1

Related Questions