git remote tag and local tag not corresponding to the code is no less than pull in vscode

vscode pulling code is 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)

 

 -t view the remote tags git tag -l with git ls-remote view local tag

Then  git Tag - d  remove the local tag xxx

Finally, the remote pull remote tags git fetch origin --prune-tags

 

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

Guess you like

Origin www.cnblogs.com/little-ab/p/11460246.html