Git错误 - 无法取消旧的'some / file / name'(坏文件描述符) [英] Git error - unable to unlink old 'some/file/name' (Bad file descriptor)

查看:194
本文介绍了Git错误 - 无法取消旧的'some / file / name'(坏文件描述符)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 错误:无法尝试切换/结帐(在TortoiseGit中)到另一个分支时,出现以下错误:解除旧的'foo / bar.cfc'(坏文件描述符)

这是什么意思? / p>

解决方案

您是否在使用TortoiseGit时使用了其他任何工具?

实例中,此项目提及与Visual Studio交互:


如果您在Windows上运行git命令时发现无法取消旧链接的链接错误,很可能您在Visual Studio中打开了chrome解决方案,并且它正在更新IntelliSense,将随机短暂锁定文件。

解决方法是完全禁用IntelliSense,或者确保在执行任何可能会触及大量文件的git操作时临时关闭解决方案。

换句话说,如果您关闭尽可能多的当前正在运行的应用程序,问题是否仍然存在?

TortoiseGit会允许您检出另一个分支吗?

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?

解决方案

Are you using any other tools while using TortoiseGit?

For instance, this project mentions an interaction with 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.

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?

这篇关于Git错误 - 无法取消旧的'some / file / name'(坏文件描述符)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆