git发生 Another git process seems to be running in this repository, e.g. an editor opened by 。。。错误

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 commit 然后回车,导致没有出commit而导致的错误就算你推出Git从新进入还是会报错误,

怎么做?

到你的Git文件夹去

然后会发现文件夹里面多了一个.git文件

打开.git文件,然后找到index.lock删除就好啦

猜你喜欢

转载自blog.csdn.net/weixin_43552006/article/details/84030565