zoukankan      html  css  js  c++  java
  • git difftool和mergetool图形化

    1.当然是先安装Beyond Compare3 (此处省略安装步骤,自行百度)

    2.设置difftool

    git config --global diff.tool bc3

    git config --global difftool.bc3.path "/usr/bin/bcompare

    git config --global difftool.prompt false

    3.设置mergetool

    git config --global merge.tool bc3

    git config --global mergetool.bc3.path "/usr/bin/bcompare"

    git config --global mergetool.bc3.trustExitCode true

    ____________________________________________________________________________________________

    Windows git difftool和mergetool图形化
    1.当然是先安装Beyond Compare3 (此处省略安装步骤,自行百度)

    2.设置difftool

    git config --global diff.tool bc3
    git config --global difftool.bc3.cmd ""c:/program files/beyond compare 3/bcomp.exe" "$LOCAL" "$REMOTE""
    git config --global difftool.prompt false

    3.设置mergetool

    git config --global merge.tool bc3
    git config --global mergetool.bc3.cmd ""c:/program files/beyond compare 3/bcomp.exe" "$LOCAL" "$REMOTE" "$BASE" "$MERGED""
    git config --global mergetool.bc3.trustExitCode true

    ____________________________________________________________________________________________


    使用时:

    diff时,用git difftool <file_name>来查看就会直接弹出bcompare.

    merge时,要先用git merge <branch_name> 来merge一下,然后如果提示merge有冲突,才用git mergetool来调用bcompare来merge

    ---------------------

  • 相关阅读:
    python深度学习之灾难求生预测(titanic)
    python深度学习之语音识别(speech recognize)
    greenplum集群状态恢复与同步
    python手写图片识别MNIST
    python随机森林房价预测
    机器学习常用模型
    python爬虫优化和错误日志分析
    数据挖掘数学基础
    虚拟机spark集群搭建
    虚拟机zookeeper和hbase集群搭建
  • 原文地址:https://www.cnblogs.com/jxldjsn/p/9691902.html
Copyright © 2011-2022 走看看