Git Elimine todas las ramas excepto Master Windows

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