Skip to content

Instantly share code, notes, and snippets.

@kaushikvira
Created December 14, 2017 17:31
Show Gist options
  • Save kaushikvira/967800241424a65fc88a0c6489517043 to your computer and use it in GitHub Desktop.
Save kaushikvira/967800241424a65fc88a0c6489517043 to your computer and use it in GitHub Desktop.
Delete all git local branches except develop and master
git branch | grep -v "develop" | grep -v "master" | xargs git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment