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
You can do this in one go with
git branch --merged master | grep -v master | xargs -n 1 git push --delete origin
Dump that in a script called 'clean' if you find you're doing this often.