I am trying to achieve something along the lines of diff -ywB --suppress-common-lines `git branch --merged prod-server` `git branch --merged test-server` so that I can know the difference of what has been merged into my test server branch but not in my production server branch

But when I execute the command above my exit status is 2 (indicates error)


Use process substitution on bash:

diff -ywB --suppress-common-lines <(git branch --merged prod-server) <(git branch --merged test-server)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.