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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can also use relative paths: