Another git process seems to be running in this repository

[已解决]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 commit'打开的编辑器。

确保其他git进程都关闭,然后再试一次。 如果仍然失败,可能是早先有一个git进程在此仓库上崩溃:手动删除锁定文件。

通过如下命令删除git操作时生成的.lock文件。

Linux:

cd .git
find ./ -name "*.lock" -type f | xargs rm

Windows:

git lock remove