Skip to content

Instantly share code, notes, and snippets.

@FabreFrederic
Created August 4, 2016 13:24
Show Gist options
  • Save FabreFrederic/9f1061ed8d38a2857a944c8d0f8bba74 to your computer and use it in GitHub Desktop.
Save FabreFrederic/9f1061ed8d38a2857a944c8d0f8bba74 to your computer and use it in GitHub Desktop.
Delete all the branches except master and develop branches
# Delete all the branches except master and develop branches
git branch -D $(git branch | grep -Ev "(\*|master|develop)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment