Git 错误 - 无法取消链接旧的“some/file/name” (错误的文件描述符)
当尝试切换/签出(在 TortoiseGit 中)到另一个分支时,我收到以下错误:
error: unable to unlink old 'foo/bar.cfc' (Bad file descriptor)
这是什么意思?
When trying to switch/checkout (in TortoiseGit) to another branch, I get the following error:
error: unable to unlink old 'foo/bar.cfc' (Bad file descriptor)
What does this mean?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
您在使用 TortoiseGit 的同时还使用过其他工具吗?
例如,此项目提到与 Visual Studio 的交互:
换句话说,如果您关闭尽可能多的当前正在运行的应用程序,问题是否仍然存在?
那么 TortoiseGit 会允许你签出另一个分支吗?
Are you using any other tools while using TortoiseGit?
For instance, this project mentions an interaction with Visual Studio:
In other word, does the problem persists if you close as many currently running applications as you can?
Would TortoiseGit allow you to checkout another branch then?
我遇到了这个问题 - Eclipse 正在锁定文件,即使它没有在编辑器中打开。一旦我关闭了 Eclipse,我就可以正常结帐了。
I ran into this problem-Eclipse was locking the file even though it wasn't open in the editor. Once I closed eclipse I could checkout fine.
该文件已被其他程序锁定,无法覆盖。 查看哪个应用程序锁定了文件,关闭该应用程序,然后重试。
The file is locked by another program and cannot be overwritten. See what application has the file locked, close that application, and try again.
如果您的问题是基于 Eclipse 锁定文件,您可以使用
-Dosgi.locking=none
启动 Eclipse。我在 eclipse Luna 4.4.0 中遇到了这个问题
If your problem is based on eclipse locking file, you can start your eclipse with
-Dosgi.locking=none
.I ran into this problem with eclipse Luna 4.4.0
当我尝试拉取时,我在 github 桌面应用程序中遇到了同样的错误。我通过关闭 Visual Studio 并在管理模式下运行 github 桌面应用程序解决了这个问题。
I got same error with github desktop app when i try to pull. I solved it by closing visual studio and running github desktop app in admin mode.
使用以下内容制作一个bat文件并运行它。它将重新启动
资源管理器,这通常是原因(如果不是您的 IDE)
Make a bat file with the below and run it. It will restart
explorer, which is the cause usually if not your IDE