当前位置:   article > 正文

报错Another git process seems to be running in this repository, e.g.an editor opened by ‘git commit‘.

another git process seems to be running in this repository, e.g. an editor o

在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文件夹(如果看不到可以点击左上角查看,把隐藏的项目打上钩)

进去文件夹后可以看到index.lock文件 删除再重新git一遍即可

解决办法二:

在终端执行 git rm .git/index.lock

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/713626
推荐阅读
相关标签
  

闽ICP备14008679号