Skip to content

Instantly share code, notes, and snippets.

@hylander0
Created November 21, 2019 20:33
Show Gist options
  • Save hylander0/99040b1e5a83e313c466aa478bfb81c4 to your computer and use it in GitHub Desktop.
Save hylander0/99040b1e5a83e313c466aa478bfb81c4 to your computer and use it in GitHub Desktop.
Remove all your local git branches but keep...
$ git branch | grep -v "master" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment