Git merge/compare tool setup

前端 未结 2 1748
不思量自难忘°
不思量自难忘° 2021-02-10 17:43

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:30

    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 
    

提交回复
热议问题