fatal: Unable to create 'D:/docs/.git/indexlock': File exists. 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.
翻译是:
无法创建'D:/docs/。git / indexlock”:文件存在。 另一个git进程似乎正在这个存储库中运行,例如。 用git commit打开的编辑器。请确认所有流程 终止,然后重试。如果仍然失败,则使用git进程 可能已经在这个存储库中崩溃了: 手动删除该文件以继续。
解决方法:手动删除该文件以继续。
切换到对应的目录 rm 删除文件即可