【git常见问题】 fatal: Unable to create index.lock File exists 错误的解决办法
2018-02-01 10:07
1926 查看
一、问题描述
使用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 a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.
二、解决办法
在项目根目录下找到 .git 文件夹。打开该文件夹。找到文件夹里面的index.lock 文件,将其删除,即可解决问题。相关文章推荐
- 使用git commit命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法
- Git – fatal: Unable to create ‘/.git/index.lock’: File exists错误解决办法
- Git – fatal: Unable to create ‘/.git/index.lock’: File exists错误解决办法
- 解决 fatal: Unable to create 'C:/wamp/www/HomeCare/.git/index.lock': File exists.
- fatal: Unable to create 'D:/BJHJ/YanQiLakeForAndroid/.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 '***/.git/index.lock': File exists.
- git 提交出现fatal: Unable to create ‘project_path/.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 pull失败提示fatal: Unable to create 'E:/job/tpaas-web/.git/index.lock': File exists.
- Git - fatal: Unable to create '/path/my_project/.git/index.lock': File exists.
- git commit时出现fatal: Unable to create ‘××××.git/index.lock': File exists.
- git 解决fatal: Unable to create 'x/.git/index.lock'’
- git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists.
- Git出现Unable to create 'E:/xxx/.git/index.lock': File exists.的解决办法