Last active
June 12, 2024 20:29
-
-
Save Steven-Harris/226fdef101f2418c687093645d429d1b to your computer and use it in GitHub Desktop.
clean up 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 --list 'chore/*' 'feature/*' 'fix/*' 'dependabot/*' | ForEach-Object { git branch -D ($_).Trim() } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alternatively, use this tool: https://github.com/drewwyatt/git-tidy