Created
December 16, 2021 21:21
-
-
Save peterblazejewicz/5fb03692df0be11202873eb9672d39d6 to your computer and use it in GitHub Desktop.
git remove all branches except master (powershell editon)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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