Pages

01 September 2016

Why doesn't 'git diff' invoke external diff tool?

Because "git difftool" does!

But how?

Default, git difftool is not related to any merge tool, of course. We have to do it on our own. I am using ubuntu and as far as I experienced, meld is a good choice to use with git difftool. Following command will make meld is default merge tool.

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

When git difftool is executed, that will ask user each of changed files in order.

git difftool

If you want to investigate changes in a specific commit, you can use the command below.

git difftool commit_hash{^,}



take care!