main
or
master
に移動する
git branch --merged | grep -v '*' | xargs -I % git branch -d %
不要なブランチを削除する | ハックノート