1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash set -e clear cd ~/slackware-builds/antonioleal/slackbuilds git checkout master echo for b in `git branch | grep -v "master"` do echo "deleting $b" git branch -D $b git push origin -d $b git fetch --prune echo done