Skip to content

Instantly share code, notes, and snippets.

@ludo237
Created September 6, 2018 16:13
Show Gist options
  • Save ludo237/b8ffa54171cc73f6d8930a6e89dc27ac to your computer and use it in GitHub Desktop.
Save ludo237/b8ffa54171cc73f6d8930a6e89dc27ac to your computer and use it in GitHub Desktop.
Delete all branches but keep 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