git - 如何终止当前正在运行的 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 进程崩溃了:手动删除文件以继续。
解决方案
当我遇到同样的问题时。我找到了解决方案,
rm -f ./.git/index.lock
请尝试一下。谢谢...
推荐阅读
- search - Sublime Text 3 使用正则表达式搜索和替换项目
- ios - 当它们不存在时如何打开我的应用程序的设置
- node.js - 为什么我在 Sequelize 查询中 OR 运算符内的条件 WHERE 被转换为 AND?
- angular - 导入未在@types 中列出的外部 javascript 库
- java - Java8 Optional vs Stream 中的嵌套空检查
- python - Django 对象的 TextField 值是否无法编译为正则表达式模式?
- python-3.x - 安装 Twisted:错误:需要 Microsoft Visual C++ 14.0
- algorithm - 查找图中两个顶点之间唯一路径数量的复杂性?
- c++ - RE:为什么我从这个计数器中得到错误的元音值?...原始代码
- c++ - 数字循环比我想要的多