Created
September 28, 2018 13:54
-
-
Save reyabreu/08f181dd86a0a6ac32e28e71816ce8af to your computer and use it in GitHub Desktop.
Delete tag from local & remote branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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