git一些错误解决办法

一、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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容