Check out example codes for "git compare files with different names". It will help you in understanding the concepts better.
Code Example 1
git diff branch1:full/path/to/foo.txt branch2:full/path/to/foo-another.txt
Learn ReactJs, React Native from akashmittal.com