git remove todos os galhos, exceto as janelas mestre

git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
Itchy Impala