Skip to content

Instantly share code, notes, and snippets.

@l0neranger
Created September 4, 2015 23:15
Show Gist options
  • Save l0neranger/a129d1c0c3724c66806e to your computer and use it in GitHub Desktop.
Save l0neranger/a129d1c0c3724c66806e to your computer and use it in GitHub Desktop.
Delete Local and Remote Git tags/branches
#
# 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