0

Say we have the following branches:

aaa --> bbb --> ccc --> ddd (HEAD) Branch A eee --> fff --> ggg Branch B 

Would it be possible to compare bbb (on Branch A) with eee (on Branch B)?

The following compares the tip of the branches (afaik):

git diff A..B 

While the following compares commits on the same branch:

git diff ddd..ccc 

Would it be possible to merge these parameters?

5
  • You can run git show b and git show e (it's not really what you're looking for though) Commented May 5, 2016 at 13:52
  • Why don'y you try it? I am not sure why you think it will not work. Commented May 5, 2016 at 14:05
  • What's wrong with git diff bbb eee? Commented May 5, 2016 at 14:18
  • Indeed git diff bbb eee works. Commented May 5, 2016 at 14:25
  • 1
    Heh. Surprise! :) Commit-ids are not tied to a branch name, they are world wide global Commented May 5, 2016 at 14:26

1 Answer 1

1

Try with compare commit heads

git diff head first branch head second branch

git diff 0dae34e 769ffr330c 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.