git删除远程主机没有的tag

可以先删除所有本地tag,然后再拉取远程上的tag

git tag -l | xargs git tag -d
git fetch --tags

其他方法以及查询tag的命令请见:Remove local tags that are no longer on the remote repository

 

posted @ 2017-07-31 11:10  raindream  阅读(998)  评论(0)    收藏  举报