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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…