美文网首页
git一些错误解决办法

git一些错误解决办法

作者: 记录学习生活 | 来源:发表于2022-06-29 00:03 被阅读0次

    一、git (master|MERGING)

    解决方法:

    1、 git reset -hard head 进行代码回退
    2、 git pull
    git commit 之后git pull拉取代码会出现这种错误
    二、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 commit’打开的编辑器。 请确保所有流程终止然后再试一次。 如果它仍然失败,那就是一个git进程可能早先在此存储库中崩溃:手动删除文件以继续。
    解决办法:
    我们删除互斥的一个文件就行了,进入工作区目录下的.git文件,其中的index.lock文件删除掉,问题解决。

    微信图片_20220628235521.png

    相关文章

      网友评论

          本文标题:git一些错误解决办法

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