Skip to content

Instantly share code, notes, and snippets.

@reyabreu
Created September 28, 2018 13:54
Show Gist options
  • Save reyabreu/08f181dd86a0a6ac32e28e71816ce8af to your computer and use it in GitHub Desktop.
Save reyabreu/08f181dd86a0a6ac32e28e71816ce8af to your computer and use it in GitHub Desktop.
Delete tag from local & remote branches
# delete local tag 'mytag'
git tag -d mytag
# delete remote tag 'mytag' (e.g. GitHub version too)
git push origin :refs/tags/mytag
# alternative approach
git push --delete origin mytag
git tag -d mytag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment