git 提交代码失败 Make sure no other git process is running and remove the file manually to continue.

在提交的代码的时候突然失败了,报错的信息是这样的

$ git commit -a
fatal: Unable to create 'e:/git/Android/XXXXXX/.git/index.lock': File e
xists.

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.

给你们翻译一下

以前没有遇到过,这里记录一下,大家有遇到可以尝试一下

到项目的文件中

会有一个 Git的文件夹,到这里找一个index.lock 删除即可

发布了108 篇原创文章 · 获赞 69 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/weixin_42114097/article/details/99358345