【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
相关推荐
stu_kk20 小时前
Git常用操作指令
git
顾默@1 天前
关于git推送到远程仓库的一些操作
git
___波子 Pro Max.1 天前
Git 2.23新增命令switch使用指南
git
℘团子এ1 天前
git中,项目怎么更换远程仓库连接地址
git
言之。2 天前
Git Hooks
git
代码AI弗森2 天前
Git Bash 与 PowerShell:定位差异、使用场景与选择建议
开发语言·git·bash
森叶2 天前
Git flow command error: ‘flow‘ is not a git command 问题解决
git
天麓2 天前
git merge 举例
git
AI_56782 天前
Git冲突治理白皮书:智能标记与可视化协同的下一代解决方案
大数据·人工智能·git·机器学习
念丶小宇2 天前
Git常用指令
大数据·git·elasticsearch