GitCheatSheet.org logo
Home / How To

Delete local or remote branch

# Delete remote branch
git push origin --delete branch-to-delete

# Delete local branch
git branch -d branch-to-delete

Deletes the branch called "my-branch-to-delete".