Let's say we have two branches master and base. To see the difference between these branches, simply do:
git difftool -d base:src/ master:src/
Then your predefined diff tool should start working, in my case kdiff3. Or you can also use the --tool option to start another: for example with vimdiff
git difftool -d --tool=vimdiff base:src/ master:src/
or with kdiff3 in the same way
git difftool -d --tool=kdiff3 base:src/ master:src/
Sedat kilil
source share