我正在尝试使用gitbash将项目推送到Github。我已经对该项目进行了一些更改,但是没有在本地计算机上进行更改,而是直接在Github网站上进行了更改。现在,我试图从计算机上推送项目的更新,并且收到错误消息
$ git add
fatal: Unable to create 'C:/Users/JJ/.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.
答案 0 :(得分:0)
当我遇到相同的问题时。我找到了解决方案,它是
rm -f ./.git/index.lock
请尝试一下。
谢谢...