Skip to content

Instantly share code, notes, and snippets.

@kxhitiz
Created January 17, 2013 11:06
Show Gist options
  • Save kxhitiz/4555231 to your computer and use it in GitHub Desktop.
Save kxhitiz/4555231 to your computer and use it in GitHub Desktop.
remove all local branch 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