git show-branch

This command allows you to see how the histories of two or more commits differ. In other words, you can see exactly which commits are in one branch but not the other.

See how to compare branches using git show-branch