sourcetree 修改difftool 为 Beyond Compare 的方法

sourcetree里设置不管用,google了下,可以通过修改 ~/.gitconfig 文件来实现。


[diff]
    tool = sourcetree
[difftool]
    prompt = false
[difftool "sourcetree"]
    cmd = 'C:/Program Files/Beyond Compare v3.3.4/App/BeyondCompare/BComp.exe' \"$LOCAL\" \"$REMOTE\"
[merge]
    tool = sourcetree
[mergetool]
    prompt = false
[mergetool "sourcetree"]
    trustExitCode = true
    cmd = 'C:/Program Files/Beyond Compare v3.3.4/App/BeyondCompare/BComp.exe' \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"


参考: http://stackoverflow.com/questions/2069490/git-diff-with-beyond-compare



你可能感兴趣的:(sourcetree 修改difftool 为 Beyond Compare 的方法)