Git error - unable to unlink old 'some/file/name' (Bad file descriptor)

↘锁芯ラ 提交于 2019-11-30 06:03:53

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?

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.

James Lawruk

The file is locked by another program and cannot be overwritten. See what application has the file locked, close that application, and try again.

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

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!