当前位置:   article > 正文

Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'._an editor opened by git commit

an editor opened by git commit

切换分支突然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,然后删除index.lock文件即可
 

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

闽ICP备14008679号