Home ›
Deleting a branch in git, and deleting that branch from the remote repositoryDeleting a branch in git, and deleting that branch from the remote repository
Submitted by Benjamin Melançon on August 28, 2011 - 6:43pm
in
git branch -d nameofbranch
git push origin :nameofbranch
You can also use git branch -D nameofbranch for the first command above if you really, really mean it.
And in the second line 'origin' is the name of the remote repository, which can be anything you choose but is usually origin.
Searched words:
git delete branch
Comments
Post new comment