Skip to content

Instantly share code, notes, and snippets.

@brpaz
Created April 27, 2019 14:01
Show Gist options
  • Save brpaz/12b5cb2f1218f6e117727c579bdc652b to your computer and use it in GitHub Desktop.
Save brpaz/12b5cb2f1218f6e117727c579bdc652b to your computer and use it in GitHub Desktop.
How to delete all your local branches but keep master #git
git branch | grep -v "master" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment