Git diff single file between branches

Comparing the current Git branch to another Git branch “develop” with a GUI is done like:

git difftool develop

Comparing a single file to another Git branch “develop” is done like:

git difftool develop -- src/myfile.c

Git difftool setup

Meld is a popular tool for comparing files and directories that works on Linux, Mac and Windows. Setup Meld with Git like:

git config --global diff.tool meld
git config --global merge.tool meld