Skip to content

Instantly share code, notes, and snippets.

@gabrielcsapo
Created December 26, 2016 22:22
Show Gist options
  • Save gabrielcsapo/bf8bdc3f6f2193d881b9dabd669b3c44 to your computer and use it in GitHub Desktop.
Save gabrielcsapo/bf8bdc3f6f2193d881b9dabd669b3c44 to your computer and use it in GitHub Desktop.
remove all branches except master
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