Created
March 8, 2014 03:12
-
Star
(332)
You must be signed in to star a gist -
Fork
(75)
You must be signed in to fork a gist
-
-
Save okunishinishi/9424779 to your computer and use it in GitHub Desktop.
Delete all git remote tags
Worked wonders thanks!
git tag -d $(git tag -l) ;
git fetch --tags ; \
git tag -l | grep "test" | (xargs -n 1 git push --delete origin && xargs git tag -d) ; \
- Delete all local tags
- Fetch all remove tags
- loop through and delete the tag that matches your tag pattern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
YMMV (use carefully):
deletes all (locally known) tags on remote named 'origin'
git push origin $(git tag -l --format=':%(refname)')
you may want to delete the tags locally also, or you might push them again:
git tag -d $(git tag -l)