Skip to content

Instantly share code, notes, and snippets.

@dreoliv
Created May 30, 2013 13:25
Show Gist options
  • Save dreoliv/5677788 to your computer and use it in GitHub Desktop.
Save dreoliv/5677788 to your computer and use it in GitHub Desktop.
Delete all local branches except master
git branch -D `git branch | awk '{ if ($0 !~ /master/) printf "%s", $0 }'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment