Created
March 11, 2016 15:08
-
-
Save thebadmonkeydev/e02b364fa6fa9dc3eaec to your computer and use it in GitHub Desktop.
Delete all local branches EXCEPT master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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