https://stackoverflow.com/questions/4099742/how-to-compare-files-from-two-different-branches git diff branch1:path/to/file branch2:path/to/file If you have difftool configured, then you can also: git difftool branch1:path/to/file branch2:path/to/file