Skip to content

Instantly share code, notes, and snippets.

Created February 22, 2021 15:18
What would you like to do?
Cleanup local git branches powershell
git checkout dev && (git branch -D @(git branch | select-string -NotMatch "dev|main" | Foreach {$_.Line.Trim()}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment