Skip to content

Instantly share code, notes, and snippets.

@dteoh
Created Sep 15, 2021
Embed
What would you like to do?
Interactively delete git branches locally

Delete multiple Git branches with a UI

This assumes you have installed fzf.

$ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment