Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete all merged branches in remote, excluding branches `dev` and `main`.
git branch --merged | egrep -v "(^\*|main|dev)" | xargs git branch -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment