Skip to content

Instantly share code, notes, and snippets.

@pftg
Last active December 17, 2015 19:59
Show Gist options
  • Save pftg/5664306 to your computer and use it in GitHub Desktop.
Save pftg/5664306 to your computer and use it in GitHub Desktop.
Simple command to delete all local branches except selected
git branch | grep -v "master\|staging\|production" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment