I tried this:
git branch -r --merged | grep '^origin/'
But I get nothing...
When I remove the caret:
✗ git branch -r --merged | grep 'origin/'
origin/HEAD -> origin/master
origin/master
I would like to make the regexp only match origin if the string begins with origin.