When I want to find the commits that are in branch A
but not in branch B
I often write
git log A ^ B
But according to the SO post How do I see the commit differences between branches in git? the following does the same thing:
git log B..A
Are these commands identical? What is the difference?