问题

今天提交代码时,在一次提交,莫名其妙没成功后,再次用git commit -a命令时,出现以下错误,无论是用git还是TortoiseGit等其他客户端都会出现以下这个问题。。

错误日志

$ git commit -a

fatal: Unable to create 'XXXXXX/.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.

解决办法

找到index.lock 删除即可

rm /home/xxx/.git/index.lock

解决:关于Git无法提交 index.lock File exists的问题相关推荐

  1. 使用git上传工程出现fatal:Unable to create ‘/xxx/xxx/xxx/.git/index.lock‘:File exists的解决办法

    git上传工程出现fatal:Unable to create '/xxx/xxx/xxx/.git/index.lock':File exists的原因及解决方法 先说解决办法 再来说说原因 官方说 ...

  2. 【038】使用git commit命令时遇到 fatal: Unable to create index.lock File exists 错误的解决办法

    一.问题描述 使用git commit 命令提交代码,遇到下面的错误: $ git commit -m 'Test' fatal: Unable to create 'D:/MyProject/.gi ...

  3. Git出现Unable to create 'E:/xxx/.git/index.lock': File exists.的解决办法

    版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明. 本文链接:https://blog.csdn.net/darlinghqq/article/d ...

  4. Git 错误 Unable to create 'E:/xxx/.git/index.lock': File exists.的解决办法

    执行commit操作的时候提示: Unable to create 'D:/git/testgit/.git/index.lock': File exists. 解决方法:rm -f .git/ind ...

  5. fatal: Unable to create ‘D:/project/.git/index.lock‘: File exists

    git 命令行报错:fatal: Unable to create 'D:/project/.git/index.lock': File exists 出现这种错误 解决办法: //在git bash ...

  6. 使用Sourcetree进行Git操作时失败提示:Unable to create '../.git/index.lock': File exists.

    今天使用git时发现无法切换分支,也无法拉取更新代码,报错: fatal: Unable to create '-/.git/index.lock': File exists. 分析原因应该是:我在使 ...

  7. IDEA中对代码进行commit时,git报Unable to create ‘E:/blog/.git/index.lock‘: File exists问题解决

    IDEA中对代码进行commit时,git报Unable to create 'E:/blog/.git/index.lock': File exists问题解决 **解决方法** **方法一** * ...

  8. Unable to create '/media/sf_nginx/H2_20151103/H2/.git/index.lock': File exists.

    今天不知怎么回事,git 突然不能add修改文件,错误信息如下,但是很奇怪的是git status 没有问题,依然正常工作 [root@test01 test_code_driver]# git ad ...

  9. Unable to create '.git/index.lock': File exists

    Git – fatal: Unable to create '/.git/index.lock': File exists. fatal: Unable to create '/path/my_pro ...

最新文章

  1. 2022-2028年中国丝印硅胶行业市场深度分析及投资前景趋势报告
  2. Linux内核地址空间为什么1GB,为什么Windows为其系统地址空间预留1Gb(或2 Gb)?
  3. httpRuntime 一点经验---引
  4. mysql php宝塔 root_宝塔面板,脚本命令
  5. 宁静——一种心灵的奢望
  6. python模拟登录webspare_全面解读python web 程序的9种部署方式
  7. 37、我的C#学习笔记3
  8. Python3 面向对象之:多继承
  9. Windows常见进程大全
  10. windows10 1909 X64位 精简优化珍藏版
  11. 卡巴斯基互联网安全套装KIS 2010 Beta汉化特别版下载(无需注册码)
  12. 首发速看:智微JMS901双接口U盘成功量产,附量产工具软件+固件+教程分享
  13. flyway java使用_Flyway的Java原生版操作
  14. 计算机无纸化考试合卷答题笔记卡,高级会计师无纸化考试攻略都在这 第一次考也不用慌...
  15. 企业信息与网络通信安全 团队成员简历-叶俊
  16. Codevs 1586 学校食堂
  17. rmi java 防火墙_RMI穿透防火墙的问题
  18. 人工智能数学基础之线性代数(二)
  19. 2×3卡方检验prism_卡方检验2python代码实现
  20. HTML5支持服务器发送事件

热门文章

  1. 软件开发中需要专职的 QA 吗?
  2. Javacript和AngularJS中的Promises
  3. Springcloud 引导上下文
  4. oracle函数 MIN([distinct|all]x)
  5. 在Linux中,用什么命令查看文件或目录的权限?
  6. 浅谈jQuery的选择器
  7. STL之string类型
  8. c# 编程学习(二)
  9. NVIDIA助力SiemensPLMSoftware“工业4.0创新实验室”,携手推进中国制造创新之路
  10. Spring核心接口之Ordered