What's the equivalent of use-commit-times for git?
Posted
by
Ben W
on Stack Overflow
See other posts from Stack Overflow
or by Ben W
Published on 2009-12-26T21:53:53Z
Indexed on
2010/12/26
15:53 UTC
Read the original article
Hit count: 267
git
I need the timestamps of files on my local and on my server to be in sync. This is accomplished with Subversion by setting use-commit-times=true in the config so that the last modified of each file is when it was committed.
Each time I clone my repository, I want the timestamps of files to reflect when they were last changed in the remote repository, not when I cloned the repo.
Is there any way to do this with git?
© Stack Overflow or respective owner