【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
相关推荐
落雪小轩韩2 小时前
Git 常用操作与注意事项全攻略
大数据·git
winds~2 小时前
【Git】git的回退功能
大数据·git·elasticsearch
Ring__Rain2 小时前
git fetch的使用
git
b1ng11 小时前
新人程序员 Git 一站式指南
git·github
程序员的世界你不懂12 小时前
IDE 关联 Git 操作
ide·git
weixin_4284984913 小时前
Git Submodule 介绍和使用指南
git
jingshaoqi_ccc1 天前
GitKraken最后一个免费版本和下载地址
git·github·gitkraken·版本管理工具
乌云暮年1 天前
Git简单命令
git·gitee·github·batch命令
用户1259265423201 天前
使用 Docker 搭建 Gitea 并实现 Git HTTP 自动登录
git
一只毛驴1 天前
谈谈对git stash的理解?
git