Last active
July 20, 2023 13:54
-
-
Save jeffpapp/6b203044e8b126543703f58371c6b195 to your computer and use it in GitHub Desktop.
Cleanup local git branches powershell
This file contains 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() } | ?{ $_ -notmatch 'main|master|dev|(\* .*)' } | %{ git branch -D $_ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment