【git】would clobber existing tag 报错解决

问题

在用vscode的Git去pull代码的时候git弹窗报错,查看报错日志发现以下内容:

bash 复制代码
> git pull --tags origin feature/xxx-2.0.0
From 173.110.11.22:VV-WORK-FE/vv-desktop
 * branch                feature/xxx-2.0.0 -> FETCH_HEAD
 ! [rejected]            v1.7.7     -> v1.7.7  (would clobber existing tag)

原因

原因可能是删了原有的一个git tag,然后重新创建了一个相同名字的。

解决

强制刷新一下本地的tags

bash 复制代码
git fetch --tags -f
相关推荐
vistaup10 小时前
windows git 更新当前目录下所有的文件(非递归)
windows·git
王码码203511 小时前
Flutter for OpenHarmony:Flutter 三方库 algoliasearch 毫秒级云端搜索体验(云原生搜索引擎)
android·前端·git·flutter·搜索引擎·云原生·harmonyos
Irene199115 小时前
Git 命令汇总表(基于一次完整的 Git 实战经验整理,涵盖从安装配置到日常开发、问题排查的所有常用命令)
git·常用命令
q54314708716 小时前
Redis Desktop Manager(Redis可视化工具)安装及使用详细教程
redis·git·bootstrap
素雨迁喜17 小时前
Linux平台下git工具的使用
linux·运维·git
Irene199119 小时前
Windows环境,VS Code 中 Git 配置指南
git·基础配置
Yang-Never20 小时前
AI Code -> Windows电脑安装Claude
开发语言·windows·git
Irene199120 小时前
2026 前端开发 Windows 安装 Git 配置指南(有实际安装过程参考:适配版本 the latest 2.53.0(2) x64 )
前端·windows·git
早起的年轻人21 小时前
告别Git仓库臃肿:一招解决Maven target目录误提交问题
java·git·maven
悠然大月季2 天前
git 怎么导出提交历史,文件是乱码
git·git导出历史记录·git导出历史乱码