Simple command to delete all local branches except selected
git branch | grep -v "master\|staging\|production" | xargs git branch -D