目 录CONTENT

文章目录

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

码农街
2017-05-16 / 0 评论 / 0 点赞 / 16 阅读 / 693 字 / 正在检测是否收录...

今天提交代码的时候遇到了这个问题:

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

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

我的是windows系统,然后解决方案是 进入项目的.git目录 删除index.lock这个文件 就好了。

原因可能是是因为操作git的时候代码冲突或者merge时产生的。

0

评论区