Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Use process substitution on bash:

diff -ywB --suppress-common-lines <(git branch --merged prod-server) <(git branch --merged test-server)
share|improve this answer
    
perfect! thanks @yaegashi –  cyberjar09 Jul 15 at 9:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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