git 本地tag和远程tag对应不上 vscode里pull不下代码

时间:2019-09-04 18:22:56   收藏:0   阅读:2157

vscode拉取代码是用  git pull --tags origin saas-xxx

> git pull --tags origin saas-base
From 172.16.0.xxx:xxxx/h5
* branch saas-xxxx -> FETCH_HEAD
! [rejected] release-20190904-V1.1.1 -> release-20190904-V1.1.1 (would clobber existing tag)
技术分享图片

 

 用git ls-remote -t 查看远程tags                 git tag -l查看本地tag

然后用 git tag -d xxx删除本地tag

最后远程拉取远程tags   git fetch origin --prune-tags

 

参考http://smilejay.com/2013/04/git-sync-tag-and-branch-with-remote/

原文:https://www.cnblogs.com/little-ab/p/11460246.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!