美文网首页
Git操作失败并提示Another git process se

Git操作失败并提示Another git process se

作者: 氨基钠 | 来源:发表于2019-12-06 10:17 被阅读0次

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文件即可。
————————————————
版权声明:本文为CSDN博主「迟到的月亮」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_32193151/article/details/70792594

相关文章

网友评论

      本文标题:Git操作失败并提示Another git process se

      本文链接:https://www.haomeiwen.com/subject/inmsgctx.html