Skip to content

Instantly share code, notes, and snippets.

@arax
Created November 10, 2017 17:46
Show Gist options
  • Save arax/d8b2b03063ae8b7c6f2e6139a1fc383e to your computer and use it in GitHub Desktop.
Save arax/d8b2b03063ae8b7c6f2e6139a1fc383e to your computer and use it in GitHub Desktop.
HowTo Delete git Tags - local & remote
TAGS=$(git tag | grep v4) # filter out tags to remove
for TAG in $TAGS ; do
git tag -d "$TAG" # remove local
git push origin :refs/tags/"$TAG" # remove from origin (remote)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment