git delete all branches except develop code example
Example 1: git remove all branches except master windows
git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
Example 2: git branch delete all local branches
// hard delete
git branch -D $(git branch)