Skip to content

Instantly share code, notes, and snippets.

@danielcbaldwin
Created October 6, 2014 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielcbaldwin/c65dce58f0c6ee49e1c5 to your computer and use it in GitHub Desktop.
Save danielcbaldwin/c65dce58f0c6ee49e1c5 to your computer and use it in GitHub Desktop.
Clean up all your local branches except master, develop, and the branch you are on currently
git branch | grep -v "master" | grep -v "develop" | grep -v "^\*" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment