こんな感じ
$ git branch -D `git branch | sed '/*/d' | tr '\n' ' '
sed '/*/d'
で、現在いるブランチを一覧から削除
$ git branch
feature/1
feature/2
feature/3
feature/4
feature/5
* master
$ git branch | sed '/*/d'
feature/1
feature/2
feature/3
feature/4
feature/5
この出力をgit branch -D
に渡す
$ git branch -D `git branch | sed '/\*/d'`'