Skip to content

Instantly share code, notes, and snippets.

@dteoh
dteoh / command.md
Last active March 13, 2025 16:28
Interactively delete git branches locally

Delete multiple Git branches with a UI

This assumes you have installed [fzf][1].

$ git branch --no-color | fzf -m | xargs -I {} git branch -D '{}'

Press tab to mark a branch, shift-tab to unmark. Press enter and all marked branches will be deleted.