Git merge/compare tool setup

前端 未结 2 1418
死守一世寂寞
死守一世寂寞 2021-02-10 17:52

I\'m trying to setup CodeCompare as my git merge/diff tool, however I keep getting an error that the following line is incorrect in my .gitconfig file, I am on windows using msy

相关标签:
2条回答
  • 2021-02-10 18:15

    I actually found this works better

    http://mnaoumov.wordpress.com/2012/09/13/git-devart-codecompare-integration/

    [diff]
        tool = codecompare
        guitool = codecompare
    [merge]
        tool = codecompare 
    [mergetool]
        keepBackup = false
    [difftool "codecompare"]
        cmd = 'C:/Program Files/Devart/Code Compare/CodeCompare.exe' \"$LOCAL\" \"$REMOTE\"
        renames = true
    [mergetool "codecompare"]
        cmd = 'C:/Program Files/Devart/Code Compare/CodeMerge.exe' -MF=\"$LOCAL\" -TF=\"$REMOTE\" -BF=\"$BASE\" -RF=\"$MERGED\"
        trustExitCode = true
    
    0 讨论(0)
  • 2021-02-10 18:26

    Try the following configuration:

    [difftool "codecompare"]
       cmd = 'C:\\Program Files\\Devart\\Code Compare\\codecompare.exe' "$LOCAL" "$REMOTE"
       renames = true
    [diff]
       tool = codecompare
    [mergetool "codecompare"]
       cmd = 'C:\\Program Files\\Devart\\Code Compare\\codemerge.exe' /MF="$LOCAL" /TF="$REMOTE" /BF="$BASE" /RF="$MERGED"
       trustExitCode = true
    [mergetool]
       keepBackup = false
    [merge]
       tool = codecompare 
    
    0 讨论(0)
提交回复
热议问题