#!/usr/bin/env bash git branch | grep -v master | grep -v '\*' | while read BRANCH; do git branch -d $BRANCH -q; done