Skip to content

Instantly share code, notes, and snippets.

@duduribeiro
Created February 24, 2016 14:13
Show Gist options
  • Save duduribeiro/2d9ceba5050b9cde1938 to your computer and use it in GitHub Desktop.
Save duduribeiro/2d9ceba5050b9cde1938 to your computer and use it in GitHub Desktop.
Delete merged branchs
git branch --merged | grep -v "\*" | grep -v master | grep -v staging | xargs -n 1 git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment