Skip to content

Instantly share code, notes, and snippets.

@treejamie
Forked from riywo/gist:5000181
Last active September 21, 2015 11:02
Show Gist options
  • Save treejamie/52ec4980a713743bfa78 to your computer and use it in GitHub Desktop.
Save treejamie/52ec4980a713743bfa78 to your computer and use it in GitHub Desktop.
How to delete git remote(origin) branch or tag?
# branch
$ git branch -d BRANCH # delete local BRANCH
$ git push origin :BRANCH # delete remote BRANCH
# tag
$ git tag -d TAG # delete local TAG
$ git push origin :refs/tags/TAG # delete remote TAG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment