Skip to content

Instantly share code, notes, and snippets.

@thebadmonkeydev
Created March 11, 2016 15:08
Show Gist options
  • Save thebadmonkeydev/e02b364fa6fa9dc3eaec to your computer and use it in GitHub Desktop.
Save thebadmonkeydev/e02b364fa6fa9dc3eaec to your computer and use it in GitHub Desktop.
Delete all local branches EXCEPT master
git branch | grep ' master$' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment