当前位置:   article > 正文

Another git process semms to be running in this repository, e.g. an editor opened by ‘git commit’._e.g. an editor opened by git commit. please make s

e.g. an editor opened by git commit. please make sure all processes

报错信息:fatal: Unable to create 'D:/openresty-1.17.8.2-win64/conf/lua_staticize/.git/index.lock': File exists.

Git操作的过程中突然显示Another git process semms 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 remove the file manually to continue…
翻译过来就是git被另外一个程序占用,重启机器也不能够解决。

原因在于Git在使用过程中遭遇了奔溃,部分被上锁资源没有被释放导致的。

解决方案:进入项目文件夹下的 .git文件中(显示隐藏文件夹或rm .git/index.lock)删除index.lock文件即可。

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

闽ICP备14008679号