Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save davidbarkhuizen/bc8abd6569eaf8e10f3c21e3449012e9 to your computer and use it in GitHub Desktop.

Select an option

Save davidbarkhuizen/bc8abd6569eaf8e10f3c21e3449012e9 to your computer and use it in GitHub Desktop.
git - delete all non-core local branches
git branch | grep -v -e "main" -e "development" -e "test" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment