一,安装软件

        1, Git 略

        2, Beyond Compare 略


二, 使Git 与 Beyond Compare关联

        1, 在当前库中管理

             a,命令

git config --local merge.tool bc3
git config --local mergetool.path '/usr/local/bin/bcomp'
git config --local mergetool.keepBackup false

             b, 怎样获得mergetool路径,如:/usr/local/bin/bcomp

MAC之使用Beyond Compare解决Git冲突_compare



MAC之使用Beyond Compare解决Git冲突_compare_02



三, 打开Beyond Compare

       1, 使用命令可自动打开Beyond Compare软件

git mergetool

四,模拟冲突

       1, 现在已经模拟了一个merge冲突,如下

MAC之使用Beyond Compare解决Git冲突_git_03

      2, 输入命令: git mergetool,打开界面如下

MAC之使用Beyond Compare解决Git冲突_冲突_04