Skip to content

Instantly share code, notes, and snippets.

@wsagen
Last active June 20, 2024 01:23
Show Gist options
  • Select an option

  • Save wsagen/1d7eacc6f8584887e713e12da7dd8260 to your computer and use it in GitHub Desktop.

Select an option

Save wsagen/1d7eacc6f8584887e713e12da7dd8260 to your computer and use it in GitHub Desktop.
Delete local branches that have been merged
git branch --merged | egrep -v "(^\*|master|develop|main|PRODUCTION)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment