git branch | grep -v "master" | xargs git branch -D
Created
March 6, 2018 16:29
-
-
Save alextrastero/9aa1c60787b90a6f74bd57936a2e4a7e to your computer and use it in GitHub Desktop.
Remove all local branches except MASTER
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment