How to setup kdiff3 in Mac OS?

后端 未结 4 408
再見小時候
再見小時候 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:32

    1. Download kdiff3 and install as app(drag and drop the kdiff3 into your Applications): http://sourceforge.net/projects/kdiff3/files/kdiff3/0.9.98/kdiff3-0.9.98-MacOSX-64Bit.dmg/download

    2. Setup git config tool as following, works for me on MacBook Pro:

    git config --global merge.tool kdiff3

    and:

    git config --global mergetool.kdiff3.cmd '/Applications/kdiff3.app/Contents/MacOS/kdiff3 $BASE $LOCAL $REMOTE -o $MERGED'

提交回复
热议问题