Skip to content

Instantly share code, notes, and snippets.

@hadnazzar
Forked from fbn4sc/command.txt
Created October 22, 2019 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadnazzar/bdcc0cf1f78f3539e4956809fdb46ba2 to your computer and use it in GitHub Desktop.
Save hadnazzar/bdcc0cf1f78f3539e4956809fdb46ba2 to your computer and use it in GitHub Desktop.
Delete all branches except master and develop.
git branch | grep -v "master\|develop" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment