尝试切换/ checkout (在 TortoiseGit 中)到另一个分支时,出现以下错误:
error: unable to unlink old 'foo/bar.cfc' (Bad file descriptor)
这是什么意思?
最佳答案
您在使用 TortoiseGit 时是否使用了其他工具?
例如,这个 project mentions与 Visual Studio 的交互:
If you see errors about being unable to unlink old files when running git commands on Windows, it's quite likely that you have the chrome solution open in Visual Studio and it's updating IntelliSense, which will briefly lock files at random.
The workaround is either to disable IntelliSense entirely, or to be sure to close the solution temporarily while performing any git operations which could touch a large number of files.
换句话说,如果您尽可能多地关闭当前正在运行的应用程序,问题是否仍然存在?
那么 TortoiseGit 会允许您 checkout 另一个分支吗?
关于Git 错误 - 无法取消链接旧的 'some/file/name'(错误的文件描述符),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4452641/