Delete merged branches remote. Use with git alias.
[alias]
cleanup-locally = "!git branch | grep -v '\\*\\|master\\|develop\\|`THE_NAME_OF_THE_BRANCH`' | xargs git branch -D "
Add this snippet into .gitconfig
Run git cleanup-locally
Kirill Budevich
github.com/theikloo
@theikloo