Created
September 4, 2015 23:15
-
-
Save l0neranger/a129d1c0c3724c66806e to your computer and use it in GitHub Desktop.
Delete Local and Remote Git tags/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
# | |
# Local | |
# | |
git tag -d TAG_NAME | |
git branch -d BRANCH_NAME | |
# | |
# Remote | |
# | |
git push origin :TAG_NAME | |
git push origin :BRANCH_NAME | |
# | |
# Remote - To prevent same name conflict | |
# | |
git push origin :refs/tags/TAG_NAME | |
git push origin :refs/heads/BRANCH_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment