当前位置: 首页 > news >正文

fatal: Unable to create ‘D:/git/2_wechat/.git/index.lock‘: File exists.

故障现象:

$ git commit -m "1st commit"
fatal: Unable to create 'D:/git/2_wechat/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

解决方法:

Administrator@DEEP-2205010009 MINGW64 /d/git/2_wechat (master)
$ rm -f ./.git/index.lock

Administrator@DEEP-2205010009 MINGW64 /d/git/2_wechat (master)
$ git commit -m "1st commit"
[master (root-commit) 4f33358] 1st commit
 1 file changed, 2 insertions(+)
 create mode 100644 good.txt
 

Thanks to :

使用Git 报错 fatal: Unable to create ... git index.lock_PrinciplesMan的博客-CSDN博客

相关文章:

  • 网络安全原理与实践学习笔记——设计DMZ
  • 【牛客刷题】带你在牛客刷题第五弹(简单排序)
  • Fragment切换的方式介绍和一些问题的解决
  • 性能优化之图片懒加载
  • Linux多线程篇【5】——线程池
  • 指针成员操作符
  • python中应对各种机制
  • css实现时钟
  • “蔚来杯“2022牛客暑期多校训练营8 补题题解(F)
  • 【数据结构与算法】之深入解析“解出数学表达式的学生分数”的求解思路与算法示例
  • 给妈妈做个相册——在服务器上搭建Lychee相册的保姆级教程
  • 编程之路22
  • 适配器模式是个啥,在Spring中又用来干啥了?
  • 183. 从不订购的客户—not in()、左连接
  • LED灯实验
  • 【140天】尚学堂高淇Java300集视频精华笔记(86-87)
  • Angularjs之国际化
  • Centos6.8 使用rpm安装mysql5.7
  • CSS相对定位
  • DataBase in Android
  • ES10 特性的完整指南
  • EventListener原理
  • Javascript设计模式学习之Observer(观察者)模式
  • java中具有继承关系的类及其对象初始化顺序
  • linux学习笔记
  • MySQL的数据类型
  • PhantomJS 安装
  • Python进阶细节
  • React-Native - 收藏集 - 掘金
  • vue从创建到完整的饿了么(18)购物车详细信息的展示与删除
  • 闭包,sync使用细节
  • 表单中readonly的input等标签,禁止光标进入(focus)的几种方式
  • 聊聊hikari连接池的leakDetectionThreshold
  • 入手阿里云新服务器的部署NODE
  • 在electron中实现跨域请求,无需更改服务器端设置
  • ​猴子吃桃问题:每天都吃了前一天剩下的一半多一个。
  • #快捷键# 大学四年我常用的软件快捷键大全,教你成为电脑高手!!
  • (13)Latex:基于ΤΕΧ的自动排版系统——写论文必备
  • (HAL库版)freeRTOS移植STMF103
  • (Matalb时序预测)WOA-BP鲸鱼算法优化BP神经网络的多维时序回归预测
  • (Note)C++中的继承方式
  • (SpringBoot)第七章:SpringBoot日志文件
  • (附源码)springboot掌上博客系统 毕业设计063131
  • (附源码)计算机毕业设计ssm基于B_S的汽车售后服务管理系统
  • (论文阅读32/100)Flowing convnets for human pose estimation in videos
  • (十) 初识 Docker file
  • (四)库存超卖案例实战——优化redis分布式锁
  • (译) 函数式 JS #1:简介
  • (译) 理解 Elixir 中的宏 Macro, 第四部分:深入化
  • (转)Windows2003安全设置/维护
  • (转)winform之ListView
  • .bat批处理(八):各种形式的变量%0、%i、%%i、var、%var%、!var!的含义和区别
  • .net 8 发布了,试下微软最近强推的MAUI
  • .NET Core SkiaSharp 替代 System.Drawing.Common 的一些用法
  • .NET Standard 的管理策略