编辑 ~/.gitconfig
代码语言:javascript复制# add
[difftool "sourcetree"]
cmd = /usr/local/bin/ksdiff -- "$LOCAL" "$REMOTE"
path =
[mergetool "sourcetree"]
cmd = /usr/local/bin/ksdiff --merge --output "$MERGED" --base "$BASE" -- "$LOCAL" "$REMOTE"
trustExitCode = true
参考
https://ruby-china.org/topics/14404