如何删除除了Master之外的所有分支

  1. 切换到 master

  2. 删了其他的

git stash && git checkout master && git branch | grep -v "master" | xargs git branch -D