wget https://gist.githubusercontent.com/senorihl/22ee7018e0c167f994f2e75918de5166/raw/clean-local-branch.sh -O $HOME/.clean-local-branch.sh
chmod a+x $HOME/.clean-local-branch.sh
git config --global alias.clean-local '!bash $HOME/.clean-local-branch.sh'
git clean-local [-v|--verbose] [--dry-run]
This command will remove all local branches that does not exists on remotes anymore
-h --help
Show help screen.-v --verbose
Display executed commands.--dry-run
Don't execute anything, just simulate commands