git branch --merged|egrep -v '\*|develop|master'|xargs git branch -d
ただし、masterとdevelopは残す
Gitでマージ済みブランチを一括削除 - Qiita