Skip to content

Instantly share code, notes, and snippets.

@liujingyu
Last active June 17, 2017 08:59
Show Gist options
  • Save liujingyu/ca9b0f82193c7d225f808553fdd80f1c to your computer and use it in GitHub Desktop.
Save liujingyu/ca9b0f82193c7d225f808553fdd80f1c to your computer and use it in GitHub Desktop.

Git delete tags

#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment