美文网首页
使用Beyond Compare作为git mergetool的

使用Beyond Compare作为git mergetool的

作者: Luyc_Han | 来源:发表于2018-03-01 12:05 被阅读739次

    第一步

    点击下载下载Beyond Compare

    第二步

    image.png

    第三步

    Mac上需要在user目录下的.gitconfig文件中加入下面的配置:

    或用终端打开.gitconfig文件在里面添加下面的配置,
    终端指令
    $git config --edit --global
    
    [diff]
            tool = bcomp
    [difftool "bcomp"]
            cmd = \"/usr/local/bin/bcomp\" \"$LOCAL\" \"$REMOTE\"
    [difftool]
            prompt = false
    [merge]
            tool = bcomp
    [mergetool]
            prompt = false
    [mergetool "bcomp"]
            cmd = \"/usr/local/bin/bcomp\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
    

    第四步

    如果项目有冲突执行指令:

    $ git mergetool
    

    相关文章

      网友评论

          本文标题:使用Beyond Compare作为git mergetool的

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