关于Git没法提交 index.lock的解决办法

今天提交代码时,在一次提交,莫名其妙没成功后,再次用git commit -a命令时,出现如下错误,不管是用git仍是TortoiseGit都会出现如下这个问题。。html

$ 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.

解决办法:找到index.lock 删除便可git

更多参考this

相关文章
相关标签/搜索