Skip to content

Instantly share code, notes, and snippets.

@brianvarskonst
Created November 25, 2021 10:59
Show Gist options
  • Save brianvarskonst/4d861b06d9fe4ab4c1e043e97f8bf484 to your computer and use it in GitHub Desktop.
Save brianvarskonst/4d861b06d9fe4ab4c1e043e97f8bf484 to your computer and use it in GitHub Desktop.
Remove merged Branches
git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment