Off-topic answer -- see commentsdiffing the same file in different branches
Just to add it for I find it a very straightforward syntax :
git diff <branch1> <branch2> <filepath> Also works with relative refs like for example :
# compare the previous committed state from HEAD with the state branch1 was 3 commits ago git diff HEAD^ <branch1>~3 <filepath>