Skip to content

Instantly share code, notes, and snippets.

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

somuch commented Dec 4, 2017

very slow.....

@anytool
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