首页 > 技术文章 > git删除远程主机没有的tag

drizzlewithwind 2017-07-31 11:10 原文

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

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

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

 

推荐阅读