Skip to content

Instantly share code, notes, and snippets.

@GalassoLuca
Created April 29, 2022 09:20
Show Gist options
  • Save GalassoLuca/08012ae62e1edf7bd8ee86e1a04b4094 to your computer and use it in GitHub Desktop.
Save GalassoLuca/08012ae62e1edf7bd8ee86e1a04b4094 to your computer and use it in GitHub Desktop.
Remove all local git branches but keep develop, stage and master
git branch | egrep -v " develop| stage| master" | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment