git did not exit cleanly (exit code 1)

来源:互联网 发布:php 数字转二进制 编辑:程序博客网 时间:2024/06/05 06:46

git did not exit cleanly (exit code 1):


Error:fatal: Unable to create 'd:/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.

 during executing git -c core.quotepath=false rm --cached -f -- xxx等文件


解决办法:   rm -f .git/index.lock    或   del .git\index.lock

原创粉丝点击