Skip to content

Instantly share code, notes, and snippets.

@hungsu
Created January 17, 2019 13:31
Show Gist options
  • Save hungsu/557beeebdb20a4b09989d8511ede71a7 to your computer and use it in GitHub Desktop.
Save hungsu/557beeebdb20a4b09989d8511ede71a7 to your computer and use it in GitHub Desktop.
Git: Remove all branches except develop
git branch | grep -v "develop" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment