b2 [BranchBuster] is a simple bash tool to remove git gone branches from your local repository.
- Find Gone Branches: Identifies branches that have been removed from the remote repository but still exist locally.
- Delete Gone Branches: Provides an interactive prompt to delete the identified gone branches.
- Version Display: Shows the current version of the script.
To use b2
, simply clone the repo and use the Makefile
to install the script.:
make install
If you want to uninstall the script, just run:
make uninstall
You can upgrade the script to the latest version by running:
make upgrade
This basically fetches the latest changes from the remote repository and replaces the script with the latest version.