Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove Git tags based on regular expression, and remove from remote
for i in $( git tag | grep ^6 ); do
#echo item: $i
git tag -d $i
git push origin :refs/tags/$i
Copy link

somuch commented Dec 4, 2017

very slow.....

Copy link

anytool commented Nov 8, 2018

git push -d origin $(git tag -l "v1*")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment