Skip to content

Instantly share code, notes, and snippets.

@terenced
Created March 8, 2021 15:42
Show Gist options
  • Save terenced/49652c9ae5389eb4724875be5dd1702a to your computer and use it in GitHub Desktop.
Save terenced/49652c9ae5389eb4724875be5dd1702a to your computer and use it in GitHub Desktop.
Clean up 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