git 本地tag和遠程tag對應不上 vscode里pull不下代碼


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

 

 

刪除遠程tags git push origin --delete tag 標簽名 

參考:https://blog.csdn.net/ownfire/article/details/45479931

 

 

 

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM