Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterblazejewicz/5fb03692df0be11202873eb9672d39d6 to your computer and use it in GitHub Desktop.
Save peterblazejewicz/5fb03692df0be11202873eb9672d39d6 to your computer and use it in GitHub Desktop.
git remove all branches except master (powershell editon)
git branch | %{ $_.Trim() } | ?{ $_ -ne 'master' } | %{ git branch -D $_ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment