Skip to content

Instantly share code, notes, and snippets.

@ishikawa
Last active September 7, 2017 04:26
Show Gist options
  • Save ishikawa/9d76b4cefb9049a2dcf80dc9b3db0895 to your computer and use it in GitHub Desktop.
Save ishikawa/9d76b4cefb9049a2dcf80dc9b3db0895 to your computer and use it in GitHub Desktop.
Delete local branches except master/deployment/current
git branch | grep -v -e 'master' -e 'deployment/' -e 'develop' -e '*' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment