Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jennasalau/e4ac25f2a4e659bdefbeee15bde77ecc to your computer and use it in GitHub Desktop.
Save jennasalau/e4ac25f2a4e659bdefbeee15bde77ecc to your computer and use it in GitHub Desktop.
Delete all local tracked branches except master and develop
git branch | grep -v master | 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