I understand the default Git behaviour of updating the modification time every time it changes a file, but there are times when I want to restore a file\'s original modifica
I wrote a little tool that will allow you to restore the modification time of the files in a directory after doing a merge or checkout with Git.
https://bitbucket.org/chabernac/metadatarestore/wiki/Home
Use the tool as a hook in Git when doing a commit, checkout or merge. See 8.3 Customizing Git - Git Hooks for information about Git hooks. You can find examples of Git hooks in the .git/hooks directory of your project.