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发生 Another git process seems to be running in this repository, e.g. an editor opened by 。。。错误_第1张图片

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

git发生 Another git process seems to be running in this repository, e.g. an editor opened by 。。。错误_第2张图片

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

你可能感兴趣的:(Git,Git出现Another,git,process,seems,Git错误,git报错)