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