zoukankan      html  css  js  c++  java
  • [转]Git调用第三方对比工具beyondCompare

    点击阅读原文

    对于我这种 git 命令行小白来说, git 自带的对比工具各种水土不服,想念以前的 svn 小乌龟 + beyondCompare 的日子。。。纠结完 gitHub client 未果之后,终于研究到。。 原来 git 的对比也可以调用第三方工具的, well done!

    下面来科普下 如果 在 git 设置 第三方对比工具。

    配置 git

    打开 .gitconfig 配置文件 (windows 在 C:UsersAdministrator [Administrator 为你当前用户名], mac 在 ~/),加入以下内容

    1
    2
    3
    4
    5
    6
    7
    8
    [diff]
        tool = bc3
    [difftool "bc3"]
        path = D:/Program Files (x86)/Beyond Compare 3/BCompare.exe
    [merge]
        tool = bc3
    [mergetool "bc3"]
        path = D:/Program Files (x86)/Beyond Compare 3/BCompare.exe

    其中 path 为你 beyondCompare 的安装目录;

    ok 搞好了, 让我们试试效果

    打开你的git项目 目录输入

    1
    git difftool git difftool -t bc3

    你会看到
    git_beyond01

    输入回车之后, ok beyondCompare 启动了~

    (tips 如果不能调用 可以在 终端输入任意字母 如 m,就可以调用成功了)
    git_beyond02.png

  • 相关阅读:
    Python之datetime模块
    PEP8规范 Python
    redis操作命令
    Django之Cookie、Session和自定义分页
    登录之验证码相关实现
    装饰器进阶
    js中的cookie使用和vue-cookie的使用
    vue-cli的安装使用
    Django之进阶相关操作
    PyMySQL模块的使用
  • 原文地址:https://www.cnblogs.com/outs/p/5081262.html
Copyright © 2011-2022 走看看