Skip to content

Instantly share code, notes, and snippets.

@davidlumley
Created April 9, 2013 00:23
Show Gist options
  • Save davidlumley/5341852 to your computer and use it in GitHub Desktop.
Save davidlumley/5341852 to your computer and use it in GitHub Desktop.
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