When I clone a git repository using "git clone ...
" command all cloned files in my local repository have the same modification time with date and time when git clone
command was issued.
Is there a way to clone remote git repository with actual modification time for each file?
Git does not record timestamp for the files, since it is a Distributed VCS (meaning the time on your computer can be different from mine: there is no "central" notion of time and date)
The official argument for not recording that metadata is explained in this answer.
But you can find scripts which will attempt to restore a meaningful date, like this one (or a simpler version of the same idea).