现在的位置: 首页 > 综合 > 正文

Unable to create ‘.git/index.lock’: File exists

2018年05月11日 ⁄ 综合 ⁄ 共 320字 ⁄ 字号 评论关闭

Git – fatal: Unable to create ‘/.git/index.lock’: File exists.

fatal: Unable to create ‘/path/my_proj/.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.

可以试着删除 index.lock

rm -f ./.git/index.lock

抱歉!评论已关闭.