Git 错误 - 无法取消链接旧的 'some/file/name'(错误的文件描述符)

标签 git tortoisegit

尝试切换/ 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/

相关文章:

Git:接收电子邮件后 Hook 以显示 html 格式的颜色差异?

git - 同时使用 heroku 和 github

git - 非常奇怪的 git rebase 行为

git - 如何在所有单元测试通过后立即 merge 推送?

mysql - 如何使用 MySQL 在 AWS EC2 上为 Laravel 5 设置环境变量

git - 关于在工作流中使用 TortoiseGit 的任何好的教程?

git - Tortoisegit:如何从新的远程分支获取?

windows - TortoiseGit:回到以前的版本

git - TortoiseGit 真的像 TortoiseSVN 一样让 Git 更容易使用吗?

linux - 如何将 git repo 从 Windows 克隆到 Linux?