I want to delete all branches that get listed in the output of ...
$ git branch
... but keeping current branch, in one step. Is th
first (switch to the branch you want to keep > ex: master):
git checkout master
second (make sure you are on master)
git branch -D $(git branch)