Goal Delete all branches except for several exceptions. In my case: development, main
I found this command but it only applies to main.
git branch | grep -v "main" | xargs git branch -D
I thought you could do it like this:
git branch | grep -v "main|development" | xargs git branch -D
But that doesn't work.