Created
October 14, 2021 14:49
-
-
Save ryancbutler/bc872a766aeeb0e551f000b96fcd8782 to your computer and use it in GitHub Desktop.
Prune Windows Git Branches
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 remote update origin --prune; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -D $_} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment