Skip to content

Instantly share code, notes, and snippets.

View andrewchaa's full-sized avatar

Youngho Chaa andrewchaa

View GitHub Profile
@jseed
jseed / gist:5d022570ea52ee09a8f43913214496f1
Last active July 22, 2024 19:30
PowerShell command to delete all branches except master
git checkout master; git branch -D @(git branch | select-string -NotMatch "master" | Foreach {$_.Line.Trim()})