Skip to content

Instantly share code, notes, and snippets.

@rsnorman
Created December 23, 2014 18:53
Show Gist options
  • Save rsnorman/284518cc80fc6872ca1a to your computer and use it in GitHub Desktop.
Save rsnorman/284518cc80fc6872ca1a to your computer and use it in GitHub Desktop.
Delete merged branches
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