delete multiple tags in local and remote
#delete the tags in remote, pattern matches the tags which you wanna keep git tag | grep -v 'pattern' | xargs git push origin --delete #delete the tag in local git tag | grep -v 'pattern' xargs git tag -d