Git Clone via SSH Changes README Timestamp: What's Happening?

28 Views Asked by At

At about Mar 12 14:50 today, I issued these git commands:

$ cd original
$ git remote add origin https://github.com/UserX/appx.git
$ git push --all origin
$ ls -ltr README
-rw-r--r--. 1 userx userx 4066 Feb 22 04:57 README

I then did a: cd ../fresh, and...

$ git clone [email protected]:UserX/appx.git
$ cd appx
$ ls -ltr README
-rw-r--r--. 1 userx userx 4066 Mar 12 14:50 README

Explain why (and where) the date on the README file has changed from Feb to today's Mar?

[I'm thinking that scp (inside git clone) can preserve dates? And maybe there is a way to preserve dates?]

0

There are 0 best solutions below