我不知道我的系统发生了什么,因为从上周开始,它每天都会连续2-3次给出这个错误。
fatal: Unable to create '/path/to/repo/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.我每次都会删除这个文件,目前它对我来说是一个很大的痛苦。
有谁能解释为什么它会持续发生,或者它的预期原因/原因是什么,或者任何可以帮助我避免这种事情的东西,至少在日常基础上它不应该发生。
发布于 2014-08-14 16:46:33
我在办公室里见过好几次这样的事情。
基本上,这里发生的事情是-输入一个git控制台命令,而同时一个可视化客户端正在运行它自己的一些命令。最后两者都无法删除index.lock文件,没有任何其他副作用引起的问题。
我通常只是删除我的原始索引文件,并将其替换为index.lock版本,以防万一。
https://stackoverflow.com/questions/21435270
复制相似问题