Last active
October 21, 2021 14:43
-
-
Save GeorgiosGoniotakis/2b111602d5c0914f2f71492c47229448 to your computer and use it in GitHub Desktop.
Delete all local Git branches except master (Windows PowerShell)
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