Restore a file's modification time in Git

后端 未结 9 1566
猫巷女王i
猫巷女王i 2020-11-29 01:13

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

9条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 01:52

    We had the same issue at work, and have been using successfully the git-store-meta perl script by Danny Lin.

    It definitely solved the problem indicated in your question.

提交回复
热议问题