How to setup kdiff3 in Mac OS?


In.gitconfig file I setup up the git diff as follows:

    tool = kdiff3

[difftool "kdiff3"]
    path = path_directory/

In this setting kdiff is not accessible and I get the following error when I run in terminal

>> git difftool
The diff tool kdiff3 is not available as 'Kdiff_local_software_path/'
fatal: external diff died, stopping at modified_file

Do you have any suggestion I can fix this issue ? In my current setup Mac OS 10.10.5 git diff tool is git merge tool that I want to replace with kdiff.


kdiff3 is generally located at the following location:


so, try

[difftool "kdiff3"]
    path = /Applications/

If you installed kdiff using brew, then you’d not need the difftool parameter in config for git 1.8 onwards. Just the following would work:

    tool = kdiff3

If you installed kdiff mounting the dmg file to then set your local path as following:

[difftool "kdiff3"]
    path = directory_path_where_you_installed/

Answered By – hjpotter92

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published