LinuxCommandLibrary

git-utimes

Change files modification time to their last commit date. Does not touch files that are in the working tree or index.

TLDR

Change all files modification time to their last commit date

$ git utimes
copy


Change files modification time that are newer than their last commit date, preserving original modification time of files that were committed from the local repository
$ git utimes --newer
copy

Copied to clipboard