git报错:
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进程似乎正在这个存储库中运行,例如,一个由“git commit”打开的编辑器。请确保所有进程都已终止,然后再试一次。如果它仍然失败,则git进程可能已经在此存储库中崩溃:手动删除该文件以继续。
**(每个人报错提示的路劲不一致,请查看自己的git弹窗报错指引的路径)
git的意思大概是,你目前无法操作进程,因为还有一个进程没有结束,但是它已经被锁住了,所以你需要操作删掉LOCK的文件,后续才可以继续操作。在提示的窗口会提示lock的路径(入上图所示)
解决方法:
方法1.文件夹工作区打开隐藏的项目可以看到.git文件夹,点击进去,按照上图你的git提示的路径找到文件类型为LOCK的文件类型,然后删除即可
方法2:
直接执行命令:
rm -f .git/index.lock
rm -f .git/你git弹窗提示的文件
然后重新操作git流程即可!!