• 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.
  • Linux

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

    Windows

    git lock remove

    从字面上看:

    在这个git仓库中似乎有另一个git进程在运行,例如:由'git commit'打开的编辑器。 请确保其他git进程都关闭,然后再试一次。 如果仍然失败,那就可能是早先有一个git进程在此git仓库中崩溃了:手动删除文件以继续。

    所以,通过以上命令删除git操作时生成的.lock文件。