This git command deletes all merged to master
branches except staging, beta, production
. Remote branches are not affected.
- Clone this repository
- Copy
git-delete-merged
to your/usr/bin
path - Add execution rights to it:
sudo chmod +x git-delete-merged
Just run the command inside your repository directory: git delete-merged