美文网首页Android Utils跬步集
配置 git 对比工具为 Beyond Compare

配置 git 对比工具为 Beyond Compare

作者: 几千里也 | 来源:发表于2017-11-27 10:49 被阅读40次

    1. 安装 Beyond Compare

    我 Mac 上用的是 Version 4.2.3 (build 22587)

    2. 配置 Beyond Compare 命令行工具

    Beyond Compare -> Install Command Line Tools -> 填写电脑密码 -> Successfully installed command line tools. -> OK
    此时可以用 bcomp file1 file2 比较文件了

    3. 配置 git 对比工具

    git config --global diff.tool bc3 
    git config --global merge.tool bc3
    git config --global difftool.prompt false
    

    快在终端里键入 git difftool 看看效果吧。

    相关文章

      网友评论

        本文标题:配置 git 对比工具为 Beyond Compare

        本文链接:https://www.haomeiwen.com/subject/knyrbxtx.html