git-use-commit-times Set files mtime by lates commit time. How to use git clone https://github.com/srz-zumix/go-git-use-commit-times.git cd go-git-use-commit-times go install cd /path/to/your/repo && git use-commit-time Recommended The same is possible git-set-file-times