I have two different files in different branches. How can I diff them in one command?
Something like
# git diff branch1/foo.txt branch2/foo-another.txt
I could check out the other file, diff it and restore, but that's quite dirty solution.
See Question&Answers more detail:os