At work we are using topic branches which are integrated into a few (3) master branches at some point. Now I\'d like to delete all topic branches from my remote reposit
These are the commands I'm using to remove everything merge into origin/master. Basically, I remove all the branches merged into master from GitHub.
origin/master
master
git remote update -p && git branch -r --merged origin/master | grep origin | grep -v master | cut -d"/" -f2- | xargs git push origin --delete