Git 集成 Araxis Merge 作为比较和合并GUI工具的配置

更多有关 Araxis Merge的配置,请参考下面原文.

原文:http://www.araxis.com/merge/scm_integration.html

Git (msysGit)

Merge integrates tightly with Git Git 集成 Araxis Merge 作为比较和合并GUI工具的配置. Araxis provides a Git File System Plugin to enable Merge to access files in Git depots directly. Merge is also able to populate the Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 button drop-down versions menu with other revisions of each file being compared. For more information, seeComparing Text Files (or Typed/Pasted Text).

msysGit Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 can also be configured to use Merge for file comparison and merge operations.

Newer Git versions

As of v1.6.4, Git includes support for Araxis Merge. The following configuration step has been tested using msysGit v1.7.1.

To use Araxis Merge for file comparison and file merging with msysGit v1.6.4 or later:
  • Update the appropriate Git configuration file Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 by adding the following diff and merge tool configurations:

    [diff]
    tool = araxis
    [difftool "araxis"]
    path = C:\\Program Files\\Araxis\\Araxis Merge\\compare.exe
    
    [merge]
    tool = araxis
    [mergetool "araxis"]
    path = C:\\Program Files\\Araxis\\Araxis Merge\\compare.exe
    

    Note: in the above paths, replace C:\\Program Files\\Araxis\\Araxis Merge\\compare.exe with the full path to the Merge compare.exe command-line utility that you have installed on your machine. Note the use of double-backslashes to separate path elements.

  • To compare files, use the git difftool Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 command. To resolve conflicting changes after merging files from a branch or remote repository, use git mergetool Git 集成 Araxis Merge 作为比较和合并GUI工具的配置.

Legacy Git versions

Versions of msysGit prior to v1.6.4 can be configured to use Merge with the instructions below (tested with msysGit v1.6.1).

To use Araxis merge for file comparison and file merging with older versions of msysGit:
  • Update the appropriate Git configuration file Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 by adding the following diff tool configuration:

    [diff] 
    external = C:\\Program Files\\Araxis\\Araxis Merge\\araxisgitdiff.exe
    renames = true
    
    [mergetool "araxis"] 
    cmd = 'C:\\Program Files\\Araxis\\Araxis Merge\\araxisgitmerge.exe' "$REMOTE" "$BASE" "$LOCAL" "$MERGED"
    trustExitCode = false
    
    [mergetool]
    keepBackup = false
    
    [merge] 
    tool = araxis
    stat = true

    Note: in the above paths, replace C:\\Program Files\\Araxis\\Araxis Merge\\araxisgitdiff.exeand C:\\Program Files\\Araxis\\Araxis Merge\\araxisgitmerge.exe with the full paths to the Merge araxisgitdiff.exe and araxisgitmerge.exe command-line utilities that you have installed on your machine. Note the use of double-backslashes to separate path elements.

  • To compare files using older versions of Git, use the git diff Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 command. To resolve conflicting changes after merging files from a branch or remote repository, use git mergetool Git 集成 Araxis Merge 作为比较和合并GUI工具的配置.

Git (Cygwin)

Git on Cygwin Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 can be configured to use Merge for file comparison and merge operations.

The following configuration step has been tested using the Cygwin distribution of Git v1.7.1.

To use Araxis Merge for file comparison and file merging:
  • Update the appropriate Git configuration file Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 by adding the following diff and merge tool configurations:

    [diff]
    tool = araxis
    [difftool "araxis"]
    cmd = '/cygdrive/c/Program Files/Araxis/Araxis Merge/Compare.exe' /2 /wait `cygpath -w $LOCAL` `cygpath -w $REMOTE`
    
    [merge]
    tool = araxis
    [mergetool "araxis"]
    cmd = '/cygdrive/c/Program Files/Araxis/Araxis Merge/Compare.exe' /3 /a2 /wait `cygpath -w $REMOTE` `cygpath -w $BASE` `cygpath -w $LOCAL` `cygpath -w $MERGED`

    Note: in the above paths, replace /cygdrive/c/Program Files/Araxis/Araxis Merge/Compare.exe with the full path to the Merge compare.exe command-line utility that you have installed on your machine.

  • To compare files, use the git difftool Git 集成 Araxis Merge 作为比较和合并GUI工具的配置 command. To resolve conflicting changes after merging files from a branch or remote repository, use git mergetool Git 集成 Araxis Merge 作为比较和合并GUI工具的配置.

上一篇:给正准备学习VC++朋友的建议


下一篇:基于最小生成树的实时立体匹配算法简介