Skip to content

Instantly share code, notes, and snippets.

@ninozhang
Created July 4, 2013 10:36
Show Gist options
  • Save ninozhang/5926667 to your computer and use it in GitHub Desktop.
Save ninozhang/5926667 to your computer and use it in GitHub Desktop.
git-delete-remote-branch
As of Git v1.7.0, you can delete a remote branch using
git push origin --delete <branchName>
which is easier to remember than
git push origin :<branchName>
which was added in Git v1.5.0 "to delete a remote branch or a tag."
http://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-both-locally-and-in-github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment