Skip to content

Instantly share code, notes, and snippets.

@culy247
Forked from fbn4sc/command.txt
Created August 14, 2020 01:08
Show Gist options
  • Save culy247/4fbce1effaee33fb62c9128f9fd6c5b6 to your computer and use it in GitHub Desktop.
Save culy247/4fbce1effaee33fb62c9128f9fd6c5b6 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