Skip to content

Instantly share code, notes, and snippets.

@riywo
Created February 20, 2013 22:15
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save riywo/5000181 to your computer and use it in GitHub Desktop.
Save riywo/5000181 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