Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove all branches except master
git branch | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.