Lazygit
- Press
3
to go to 3. Local Branches panel - Select a branch (using
↓
/↑
/🖱️) - Press
d
to delete the branch
Basic Terminal
git branch -d <branch>
If the branch is not merged, you can use -D
instead of -d
to force delete the branch.
git branch -D <branch>