Skip to content

Instantly share code, notes, and snippets.

@pchmielowski
Created January 21, 2019 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pchmielowski/d6be397f58103e82ea6f0d5177f92f08 to your computer and use it in GitHub Desktop.
Save pchmielowski/d6be397f58103e82ea6f0d5177f92f08 to your computer and use it in GitHub Desktop.
Try delete all branches
git for-each-ref | cut -f2 -d' ' | cut -f2 | grep --color=never heads | cut -f3 -d'/' | while read br; do git branch -d $br; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment