I personally like to check the difference in the revision trees:
git log --graph --left-right --cherry-pick --oneline branch1...branch2
In addition, in the "magic" department there is
git show-branch git show-branch branch1 branch2 git show-branch
And finally
git merge-base branch1 branch2
to name the base version to be combined with
Notes:
--cherry-pick
Omit any commit that introduces the same change as another commit on the โother sideโ when the set of commits is limited to a symmetric difference.
For example, if you have two branches, A and B, the usual way to list all commits is only on one side - with -left-right, as in the example above in the description of this parameter. However, it shows the fixations that were selected from another branch (for example, โ3rd on bโ can be selected from cherry from branch A). With this option, such commit pairs are excluded from the output.
source share