Skip to content

Instantly share code, notes, and snippets.

@ervinne13
Created December 1, 2025 00:59
Show Gist options
  • Select an option

  • Save ervinne13/0a4f9a534db16328193d47f0e5f4222c to your computer and use it in GitHub Desktop.

Select an option

Save ervinne13/0a4f9a534db16328193d47f0e5f4222c to your computer and use it in GitHub Desktop.
Delete merged branches
git branch --merged | grep -vE "(^\*|main)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment