You can use one of the following actions:
(choose the one that suits you and make it an alias).
# the equivalent command (dry run) for pull/push git log ^branch1 branch2 git log branch1 ^branch 2
git show
Shows one or more objects (drops, trees, tags and commits).
For commits, it shows a log message and text difference . It also presents a merge commit in a special format created by git diff-tree --cc.
git log --cc
From git v> 2.6, you have the --cc
flag added to the log so you can use
git log --cc
It will also display a complete log with a difference.

git diff-tree --cc HEAD
Very similar to git log --cc
. Behind the scenes, git show
is an alias for this command.

source share