git 锁文件

> git add -A -- .

fatal: Unable to create '/Users/feizhu/Desktop/中科/smart-watch-backend-java/.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.又是垃圾git 锁住问题,策底解决

根本原因是某个 git 进程(VS Code 的 git 插件、终端里的 git 命令、或之前的 git 操作)异常退出时没有清理锁文件 ;直接执行

bash 复制代码
rm -f .git/index.lock
相关推荐
生戎马 平安京策5 小时前
git寻根——^和~的区别
git
技术小结-李爽5 小时前
【工具】git远程分支合并
git·gitee
RootKai6 小时前
Git命令与基本使用流程
git
AdaTina8 小时前
关于git的初始操作
git
Coder-LiyG10 小时前
Git 常用操作指南:从初始化到回退的高频命令速查
git
Eloudy21 小时前
git format-patch 、git diff 与 git apply
git·构建
技术小结-李爽1 天前
【工具】git安装及配置
git
技术小结-李爽1 天前
【工具】git与gitee和gitlab和github等等有什么区别?
git·gitee·gitlab
Haku Coder1 天前
0基础学习Git——基础篇
git·学习