Restore a file's modification time in Git

后端 未结 9 1536
猫巷女王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:47

    https://github.com/MestreLion/git-tools

    sudo apt install git-restore-mtime
    cd [repo]
    git restore-mtime
    

提交回复
热议问题