Skip to content

Instantly share code, notes, and snippets.

@Workshop2
Created November 17, 2015 12:19
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 Workshop2/469248146e43398b460a to your computer and use it in GitHub Desktop.
Save Workshop2/469248146e43398b460a to your computer and use it in GitHub Desktop.
Remove all local branches
git checkout master; git branch | sed -e '/master/d' -e 's/^/git branch -D /' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment