Skip to content

Instantly share code, notes, and snippets.

@davidlumley
Created April 9, 2013 00:23
Removes all branches merged into master
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment