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
This linux one-liner will fix all the files (not folders - just files) - and it will also fix files with spaces in them too:-
git ls-files -z | xargs -0 -n1 -I{} -- git log -1 --format="%ai {}" {} | perl -ne 'chomp;next if(/'"'"'/);($d,$f)=(/(^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(?: \+\d\d\d\d|)) (.*)/);print "d=$d f=$f\n"; `touch -d "$d" '"'"'$f'"'"'`;'