How do I configure Araxis Merge for use with Git?

前端 未结 5 1632
不知归路
不知归路 2020-12-10 12:01

I understand that Araxis Merge is now a \"fully supported\" mergetool for Git, so that much of what I can find about configuring Git to use it is now out of dat

相关标签:
5条回答
  • 2020-12-10 12:09

    @raxacoricofallapatorius great answer! But you need to run that command line with quotes (due to the space in Araxis Merge. Without quotes produced a truncated path of "/Applications/Araxis" which didn't work obviously, but adding quotes and re-running that command fixed my issues. Thanks!

    Fix:

    git config --global mergetool.araxis.path "/Applications/Araxis Merge.app/Contents/Utilities/compare"
    
    0 讨论(0)
  • 2020-12-10 12:11

    Hard to make sense of the thread here, so I'm pasting below the exact .gitconfig that worked for me:

    [diff]
    tool = araxis
    
    [merge]
    tool = araxis
    
    [mergetool "araxis"]
            path = /Applications/Araxis Merge.app/Contents/Utilities/compare
    
    0 讨论(0)
  • 2020-12-10 12:15

    Git now uses the Araxis compare utility directly, rather than araxisgitdiff and araxisgitmerge, so all that's needed is to set the path to

    /Applications/Araxis Merge.app/Contents/Utilities/compare
    

    for example, by executing

    git config --global mergetool.araxis.path '/Applications/Araxis Merge.app/Contents/Utilities/compare'
    

    or by directly editing ~/.gitconfig to contain

    [mergetool "araxis"]
         path = /Applications/Araxis Merge.app/Contents/Utilities/compare
    
    0 讨论(0)
  • Make sure you are running git version 1.6.4 or above. Copy these utilities from the Utilities folder in the Araxis Merge install image to /usr/local/bin.

    araxisgitmerge
    araxisopendiff
    compare
    compare2
    

    Then edit ~/.gitconfig and add these lines:

    [diff]
        tool = araxis
    [merge]
        tool = araxis
    

    The next time you type git mergetool it should launch the Araxis Merge graphical tool.

    This information was taken from the official Araxis documentation here.

    0 讨论(0)
  • 2020-12-10 12:19

    If you use SourceTree (I'm using v3.0.8) it's very easy to configure Araxis merge as the external diff tool:

    For using Araxis Merge to view file differences:

    • Install Araxis Merge
    • In SourceTree: Tools > Options > Diff > External Diff Tool > select AraxisMerge from dropdown > OK

    (No need to define the Arguments, no need to restart SourceTree)

    Example use:

    • Right-click an uncommitted file that you want to compare > select 'External Diff' (or select file then CTRL-D) - this will compare the differences between your latest changes and your local repo.
    0 讨论(0)
提交回复
热议问题