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
相关推荐
Leo_Mr1 小时前
Vue3 项目配置 Git 提交规范(企业通用方案:husky + commitlint + cz-git + lint-staged)
git
jyOverQ1 小时前
Git rebase 和 merge 有什么区别?什么时候该用哪个?
git
晗夜未央2 小时前
跨仓库 Skill 换台电脑就失效?用 Git remote 校验项目
人工智能·git·python
Lsetea2 小时前
Git访问HTTPS证书不受信任:用URL级sslCAInfo限定私有CA范围
git·https·开发工具·ssl证书·ca证书
এ慕ོ冬℘゜17 小时前
Git 基础入门|和 SVN 对比 + 四大区域 + 常用命令详解
git·svn
DevLoom_20 小时前
macOS 命令行 curl/git 报 SSL 证书错误?eMudhra 事件完整修复指南
git·macos·ssl
keyipatience21 小时前
Git学习(4)Git分布式优势与实战配置全解析
git·学习
SH的全栈笔记1 天前
敲下 git add 的那一刻,.git 里多了什么
git·后端
正经教主1 天前
【FDE系列】阶段2:Day 45(up详细版):综合实战 — Docker + Nginx + Git 完整部署与本周收官
人工智能·git·nginx·docker·fde
Change!!2 天前
git小乌龟,切换到新分支处理
git·git切到新分支,旧代码贮藏