win10下怎么配置以KDiff3作为merge tool和diff tool

系统环境:

    OS: Windows 10
    Git 2.6.1.windows.1
    KDiff3 0.9.98 (64 bit)

具体代码如下:

git config --global --add merge.tool kdiff3
git config --global --add mergetool.kdiff3.path "C:/Program Files/KDiff3/kdiff3.exe"
git config --global --add mergetool.kdiff3.trustExitCode false

git config --global --add diff.guitool kdiff3
git config --global --add difftool.kdiff3.path "C:/Program Files/KDiff3/kdiff3.exe"
git config --global --add difftool.kdiff3.trustExitCode false

查看git配置文件.gitconfig添加内容为:

[merge]
    tool = kdiff3
[mergetool "kdiff3"]
    path = C:/Program Files/KDiff3/kdiff3.exe
    trustExitCode = false
[diff]
    guitool = kdiff3
[difftool "kdiff3"]
    path = C:/Program Files/KDiff3/kdiff3.exe
    trustExitCode = false
posted @ 2016-12-04 06:48  叕叒双又  阅读(890)  评论(0编辑  收藏  举报