Skip to content

Instantly share code, notes, and snippets.

@hartraft
Forked from shsteimer/gist:7257245
Last active July 2, 2019 09:37
Show Gist options
  • Save hartraft/e227dbd8ce05cae57898d1d4c4b41933 to your computer and use it in GitHub Desktop.
Save hartraft/e227dbd8ce05cae57898d1d4c4b41933 to your computer and use it in GitHub Desktop.
Tip to delete tags by pattern
# delete all the remote tags with the pattern your looking for, ie. DEV-
git push origin --delete $(git tag -l "DEV-*")
# delete all your local tags
git tag -d $(git tag -l "DEV-*")
# fetch the remote tags which still remain
git fetch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment