美文网首页工作生活
Git操作失败,崩溃处理(Another git process

Git操作失败,崩溃处理(Another git process

作者: 长街漫步 | 来源:发表于2019-07-02 18:16 被阅读0次

    在使用git 中过程中不免出现及其卡顿的情况,然而及其卡顿我们的处理一般的处理办法就是杀掉进程等等。。但是这样就影响了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提交”打开的编辑器。请确认所有流程终止,然后重试。如果仍然失败,则使用git进程可能在此存储库早前崩溃:
    手动删除文件以继续。

    处理办法:
    打开 .git 文件夹 删除 index.lock 这个文件即可

    rm -rf ./.git/index.lock
    

    相关文章

      网友评论

        本文标题:Git操作失败,崩溃处理(Another git process

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