Skip to content

Instantly share code, notes, and snippets.

View berndtlindner's full-sized avatar

Berndt Lindner berndtlindner

View GitHub Profile
@themsaid
themsaid / gist:92dc313ffda506f0f0f3f295ed66a64b
Last active May 2, 2018 14:44
Delete all branches except
// Delete all except multiple
git branch | grep -v "master\|dev" | xargs git branch -D
// Delete all except 1
git branch | grep -v "master" | xargs git branch -D