git gc / git gui: Unlink of file failed

后端 未结 1 1738
不知归路
不知归路 2021-02-12 14:14

Running version 1.9.4.msysgit.0 of git, I\'m getting the mentioned error(s) almost every time I run git gc on the command-line or via

相关标签:
1条回答
  • 2021-02-12 14:52

    What I recommend you to do is to use git from the git-bash (i.e. %GIT_HOME%\bin\bash.exe) and not from cmd. Once switching to git-bash you should not expect to get this problem since cmd is a Windows command that might lock your files, while git-bash is like a UNIX emulator which will not lock your files (even if it's actually looking on your Windows folders).

    0 讨论(0)
提交回复
热议问题