Eliminar todas las ramas locales Webstorm
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Bloody Buzzard
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d