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
相关推荐
一只积极向上的小咸鱼12 小时前
嵌套 Git 仓库 / gitlink / submodule 问题总结
大数据·git·elasticsearch
LuDvei13 小时前
git拉取报错问题
git
程序猿多布13 小时前
Fork操作笔记
git·fork
荪荪13 小时前
在本地建立git仓库
git
OYangxf14 小时前
Git Rollback, Reset and Restore的使用
git
AIMath~15 小时前
git管理代码仓库的工具
git
techdashen20 小时前
为 Agent 重新设计的 Git:Cloudflare Artifacts 是什么,怎么工作的
git
赖在沙发上的熊20 小时前
Git多仓库协作中和并冲突问题:“不相关历史合并”+“问跟踪文件冲突”
git
风若飞21 小时前
▎ 适用于完全没有 Git 经验的新手
git