Git Branch Delete Multiple.
Provides a CLI interface for deleting multiple local branches at the same time.
npm install -g gbrdm
Navigate to a directory that contains a .git
directory.
gbrdm
Select the branch(es) you'd like to remove
Confirm you really want to remove them
And your done!
You will notice that running gbrdm
produces a list of most of your local branches, but some may be missing. There are several branch names that we won't include in group deleting. These names are:
master
develop
test
staging
The reason for this is that the names above are commonly used for important branches. You may still delete these branches if you choose, but you will need to do it outside of the gbrdm
interface.