删除本地所有标签

可以查看这个:https://stackoverflow.com/questions/44702757/how-to-remove-all-git-origin-and-local-tags

对于使用命令提示符的Windows:

删除本地标签:

for /f "tokens=* delims=" %a in ('git tag -l') do git tag -d %a

删除远程标签:

for /f "tokens=* delims=" %a in ('git tag -l') do git push --delete origin %a

 

....但是我没明白什么意思这个 应该是for 循环查看所有的标签 逐个删除的

posted @ 2021-05-20 10:33  冰糖葫芦很乖  阅读(184)  评论(0编辑  收藏  举报