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 小时前
Ubuntu虚拟机(服务器版本)Git卸载完全教程——彻底移除与清理配置
服务器·git·单片机·嵌入式硬件·物联网·ubuntu·51单片机
不做无法实现的梦~7 小时前
Git Clone 使用 Watt/Steam++ 加速时报证书错误的原因与解决方法
大数据·git·elasticsearch
黑猫警长丶8 小时前
Git 操作笔记
笔记·git
MageGojo8 小时前
Whois 域名查询 API 接入实战:用一个 GET 请求获取域名注册信息
java·git·github
黑猫警长丶8 小时前
Git 本地操作基础
git
白狐_7989 小时前
从功能开发到开源维护:一个 Python 可视化项目的 Git 分支、维护文件与 PR 流程实践
git·python·开源
思麟呀9 小时前
git分支
git
江华森9 小时前
Git + Maven Java 项目部署实战全指南
运维·笔记·git·学习·maven
火车叼位1 天前
用脚本固化 Git Squash 合并与文件排除流程
git
wunaiqiezixin1 天前
git常用命令总结
git