使用git commit命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法
来源:互联网 发布:网管监控软件 编辑:程序博客网 时间:2024/05/21 22:29
一、问题描述
使用git commit 命令提交代码,遇到下面的错误:
$ git commit -m 'Test'fatal: Unable to create 'D:/MyProject/.git/index.lock': File exists.If no other git process is currently running, this probably means agit process crashed in this repository earlier. Make sure no other gitprocess is running and remove the file manually to continue.
二、解决办法
在项目根目录下找到 .git 文件夹。打开该文件夹。找到文件夹里面的index.lock 文件,将其删除,即可解决问题。
解决办法参考 这个问答 里面 Ryan S 的回答。
0 0
- 使用git commit命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法
- git commit时出现fatal: Unable to create ‘××××.git/index.lock': File exists.
- Git – fatal: Unable to create ‘/.git/index.lock’: File exists错误解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create '路径/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法
- fatal: Unable to create ‘xxxx/.git/index.lock': File exists.
- FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS
- fatal: Unable to create '........./.git/index.lock': File exists.
- fatal: Unable to create '.../.git/index.lock': File exists.
- git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists.
- git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists. 解决方法
- fatal: Unable to create '/.git/index.lock': File exists 的解决方法
- Git出现Unable to create 'E:/xxx/.git/index.lock': File exists.的解决办法
- scanf()函数中%[]格式控制符用法
- 第一个工作项目(2)- 忆往昔
- java设置一段代码执行超时时间
- Linux、GUN/Linux、GUN、GPL以及各个发行版本详细介绍
- [js] DOM操作
- 使用git commit命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法
- 获取当前屏幕的密度只
- 简洁天气源码(经测可使用)
- Android 5.x Theme 与 ToolBar 实战
- 通向架构师的道路(第八天)之weblogic与apache的整合与调优
- 创建数据库表空间、表及用户
- VC+ADO+多线程高效、安全的读写数据库
- Ubuntu下安装memcache,以及python-memcach
- Spring的四种事务管理(一种编程式事务+三种声明事务)<学习随笔>