美文网首页
Another git process seems to be

Another git process seems to be

作者: SailingBytes | 来源:发表于2020-01-17 18:45 被阅读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 commit”打开的编辑器。请确保所有流程 终止,然后重试。如果仍然失败,git进程 可能已在此存储库中崩溃: 手动删除文件以继续。

指 git 被另外一个程序占用,重启项目或者重新打开项目都不能解决,除非删除git源文件。

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

解决方案:

将 .git 文件中 index.lock 删除(rm -rf index.lock)。

相关文章

网友评论

      本文标题:Another git process seems to be

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