/tags/remote
- Git: Delete all remote branches except master
git doesn't have a command to delete all the remote branches with exceptions. However, the task can be accomplished by setting some variables and piping git branch -r, grep, sed, and xargs git push.