Posted about 10 years ago. Visible to the public.

Delete a remote branch with git

Delete the local branch

Copy
git branch -d branch_to_delete

Delete the remote branch:

Copy
git push origin :branch_to_delete

NOTE Make sure you put the colon in front of the branch name

Thanks, @nistude Archive

Owner of this card:

Avatar
Matthias Marschall
Last edit:
about 10 years ago
Keywords:
github
Posted by Matthias Marschall to Matthias Marschall
This website uses short-lived cookies to improve usability.
Accept or learn more