Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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