How can I find out what are the differences between 2 remote branches?
I tried:
git diff --name-status remotes/branch-V4.4..remotes/branch-V4.2
But it gives me a list of files which changes.
Is there a way I get a list of commits which shows me the difference between 2 branches?
Thank you.
Update:
Thank you for the answer. I have tried ‘git log –graph remotes/branch-V4.4…remotes/branch-V4.2’
I see
* commit ............
|
|
|
* commit .............
|
|
|
* commit .............|
|
|
* commit .............
Why only “|” , a straight line? why it does not show where does the 2 branches begins to diverge?
Thank you.
What you are looking for is probably something like:
or if gitk is not available:
You might also want to try it without the
--date-order, but especially in complicated situations, I found thatgit logproduces more useful graphs with that option.Every commit in that graph will be either marked with
<,>oro– that means that they are part of the left branch, the right branch or a “boundary commit”.