首页 > 解决方案 > 如何终止当前正在运行的 git 进程?

问题描述

$ git commit -m "45"
fatal: Unable to create 'F:/SoftifyBD/Projects/proj-4/CMS_Latest/contentmanagementsystem/.git/index.lock': File exists.

另一个 git 进程似乎正在此存储库中运行,例如由“git commit”打开的编辑器。请确保所有进程都已终止,然后重试。如果仍然失败,则可能是之前此存储库中的 git 进程崩溃了:手动删除文件以继续。 在此处输入图像描述

标签: gitterminate

解决方案


当我遇到同样的问题时。我找到了解决方案,
rm -f ./.git/index.lock
请尝试一下。谢谢...


推荐阅读