美文网首页
git Another git process seems to

git Another git process seems to

作者: 阿畅_ | 来源:发表于2019-05-09 17:07 被阅读0次
image.png

记录一下今天 git 遇到的错误,在 vscode 编译器里面,提交代码是提示错误的 log 日志,在终端提交看了一下,错误如上图
大概意思是: 另一个 git 进程似乎正在运行,例如: 一个由 git commit 打开的编译器,请确认所有流程终止,然后重试,如果仍然失败,手动删除文件即可。

原因是 git 过程中遇到崩溃,部分被锁的资源没有被释放
解决方式:

image.png

在文件夹下打开终端 -> cd 到 .git 文件夹 -> rm -rf index.lock 删除 index.lock 文件即可。

相关文章

网友评论

      本文标题:git Another git process seems to

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