Git 2 · Branches

Delete an unmerged branch

Delete a local branch even if its commits are not merged.

git branch -D feature/login

Caution: Unmerged commits become hard to find. You can usually recover them with git reflog.

Official Git 2 documentation

More branches commands

All branches commands · Git 2 cheatsheet

Was this page helpful?