git
compare file in different branches
See here
The syntax is as follows
git difftool [| diff] branch1..branch2 -- <path/to/file/file_to_compare>
Example:
git difftool branch1..branch2 -- ./src/myfile.py