Skip to content

Instantly share code, notes, and snippets.

@Steven-Harris
Last active June 12, 2024 20:29
Show Gist options
  • Save Steven-Harris/226fdef101f2418c687093645d429d1b to your computer and use it in GitHub Desktop.
Save Steven-Harris/226fdef101f2418c687093645d429d1b to your computer and use it in GitHub Desktop.
clean up git branches (powershell)
git branch --list 'chore/*' 'feature/*' 'fix/*' 'dependabot/*' | ForEach-Object { git branch -D ($_).Trim() }
@Steven-Harris
Copy link
Author

Steven-Harris commented Jun 12, 2024

alternatively, use this tool: https://github.com/drewwyatt/git-tidy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment