Skip to content

Instantly share code, notes, and snippets.

@DanPurdy
Last active September 2, 2016 09:14
Show Gist options
  • Save DanPurdy/ac07cf0dab7f9c223f4e56285bf5b382 to your computer and use it in GitHub Desktop.
Save DanPurdy/ac07cf0dab7f9c223f4e56285bf5b382 to your computer and use it in GitHub Desktop.
Removes all merged branches excluding master/develop
alias gbpurge='git branch --merged | grep -Ev "(\*|master|develop)" | xargs -n 1 git branch -d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment