1、先安装好BeyondCompare(请支持正版)
2、打开SourceTree的Preferences
选择Diff 在下面的External Diff/Merge 中如下设置
Visual Diff Tool: Other
Diff Command: /usr/local/bin/bcomp
Arguments: $LOCAL $REMOTE
Merge Tool: Other
Merge Command: /usr/local/bin/bcomp
Arguments: $LOCAL $REMOTE $BASE $MERGED
3、打开终端 输入命令