How to setup kdiff3 in Mac OS?

后端 未结 4 407
再見小時候
再見小時候 2020-12-24 13:51

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

[diff]
    tool = kdiff3

[difftool \"kdiff3\"]
    path = path_directory/kdiff3.app
         


        
4条回答
  •  天涯浪人
    2020-12-24 14:28

    kdiff3 is generally located at the following location:

    /Applications/kdiff3.app/Contents/MacOS/kdiff3
    

    so, try

    [difftool "kdiff3"]
        path = /Applications/kdiff3.app/Contents/MacOS/kdiff3
    

    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:

    [diff]
        tool = kdiff3
    

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

    [difftool "kdiff3"]
        path = directory_path_where_you_installed/kdiff3.app/Contents/MacOS/kdiff3
    

提交回复
热议问题