VSCode拉取git分支报错:v1.1.0 (would clobber existing tag)的解决方法

今天在线上修改了 Tags ,再使用 VSCode 里的 pull 拉取分支时报错:

From http://git....
 * branch            dev        -> FETCH_HEAD
 ! [rejected]        v1.1.0     -> v1.1.0  (would clobber existing tag)

git 本地 tag 和远程 tag 对应不上就会出现这样的问题。

解决方法:

查看远程 tags :

git ls-remote -t

查看本地 tag :

git tag -l

删除本地 tag :

git tag -d xxx

拉取远程 tags :

git fetch origin --prune-tags

扩展:

删除远程 tags :

git push origin --delete tag xxx


未经允许不得转载:Web前端开发资源网 » VSCode拉取git分支报错:v1.1.0 (would clobber existing tag)的解决方法

推荐阅读:

解决margin击穿的几种方法

html中hr标签的基础知识

PHP连接MySQL数据库报错:Call to undefined function mysql_connect()的解决方法

WebStorm绑定Chrome浏览器实现实时自动刷新

Photoshop保存ICO格式插件 ICOFormat.8bi

赞 (1)
分享到: +

评论 沙发

Avatar

换个身份

  • 昵称 (必填)
  • 邮箱 (选填)