Skip to content

Instantly share code, notes, and snippets.

@stevenliebregt
Created June 5, 2020 06:12
Show Gist options
  • Save stevenliebregt/8bf9894d08bfca33bf024766efa3547a to your computer and use it in GitHub Desktop.
Save stevenliebregt/8bf9894d08bfca33bf024766efa3547a to your computer and use it in GitHub Desktop.
Clean up your local Git branches
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment