当我们使用git提交的时候突然报以下的错误:
Another git process seems to be running in this repository, e.g.an editor opened by 'git commit'. Please make sure all processesare terminated then try again. If it still fails, a git processmay have crashed in this repository earlier:remove the file manually to continue.
翻译过来大概的意思就是:另一个git进程似乎正在这个存储库中运行,例如。由git commit打开的编辑器。请确保所有流程
被终止,然后重试。如果仍然失败,git进程之前可能在此存储库中崩溃:手动删除文件以继续。
解决方法
1、进入项目里面的.git文件里面找到index.lock删除即可。
重新提交就可以提交上去了。