None of the above answers work for me under git bash on Windows. I'm not sure if this is a thing of version (I'm using 1.8.4) or Windows / bash; also, in my case, I wanted to separate the two branches, where each branch had additional files that were not present in the other branch (the βfindsβ were based on errors).
Anyway, this worked for me (in my example, looking for the difference between python files):
git diff branch1 branch2 -- `git diff --summary branch1 branch2 | egrep '\.py$' | cut -d ' ' -f 5`
Yonatan Nov 08 '14 at 17:25 2014-11-08 17:25
source share