【发布时间】:2016-04-14 15:44:53
【问题描述】:
当我尝试运行任何 git 命令时,我得到以下信息
$ git add .
fatal: Unable to create 'J:/Project/geospatial/U5M_africa/.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.
我删除文件没有任何错误:
$ rm -f .git/index.lock
我也尝试在 Windows 中手动删除它。该文件会消失,但会立即重新出现。如果我尝试任何 git 命令,我仍然会遇到同样的致命错误。
是什么导致文件立即重新出现?我怎样才能永远摆脱它并继续我的生活?
【问题讨论】:
-
Eclipse 反复导致创建此文件。一旦我关闭 Eclipse,它就停止了。
标签: git