How to delete all your local branches but keep master #git
git branch | grep -v "master" | xargs git branch -D