git branch | grep -v "master" | xargs git branch -D Explanation: 🛒 Get all branches (except for the master) via git branch | grep -v "master" command 👇 Select every branch with xargs command 💦 Delete branch with xargs git branch -D
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter