$ git branch --merged|egrep -v '\*|develop|master'|xargs git branch -d

Gitでマージ済みブランチを一括削除 - Qiita