A TUI to cleanup local git branches
curl -sfL https://raw.githubusercontent.com/mistakenelf/branch-cleaner/main/install.sh | shgo install github.com/mistakenelf/branch-cleaner@latest
- Easily delete branches one at a time or in bulk
- Ability to filter by branch name
- Protect branches from being deleted
branch-cleanerwill start the application in the current directorybranch-cleaner -hwill show the help menubranch-cleaner -vwill show the current versionbranch-cleaner updatewill update branch cleaner to the latest version
Too much to type? Create an alias:
alias bc="branch-cleaner"
Configuration is handled through environment variables.
PROTECTED_BRANCHES="main:master:develop:dev:prod" branch-cleaner