美文网首页
Git报错Unable to create 'XXX/.

Git报错Unable to create 'XXX/.

作者: df661d1e16ba | 来源:发表于2016-11-17 17:21 被阅读1074次

Commit failed with error
0 files committed, XX files failed to commit: XXX
Unable to create 'XXX/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

解决方法:
在.git同级目录,执行rm -f .git/index.lock

相关文章

网友评论

      本文标题:Git报错Unable to create 'XXX/.

      本文链接:https://www.haomeiwen.com/subject/spodpttx.html