我刚开始使用 Git。我想使用 TortoiseMerge 作为 difftool 和 mergetool。
在我的$HOME/.gitconfig
我有以下部分。我已经删除了这个问题的用户和颜色部分。
[merge]
tool = tortoisemerge
[mergetool "tortoisemerge"]
cmd = \"TortoiseMerge.exe\" -base:\"$BASE\" -mine:\"$LOCAL\" -theirs:\"$REMOTE\" -merged:\"$MERGED\"
[diff]
tool = tortoisemerge
[difftool "tortoisemerge"]
cmd = \"TortoiseMerge.exe\" -base:\"$BASE\" -mine:\"$LOCAL\" -theirs:\"$REMOTE\" -merged:\"$MERGED\"
如果我在 Git Bash 提示符下键入 tortoisemerge,它会加载。众所周知,它在路上。但是,如果我键入命令,我会收到以下错误。
Rich:mygittest (master *)
$ git difftool
error: 'tortoisemerge' can only be used to resolve merges
merge tool candidates: kompare emerge vimdiff
No known merge resolution program available.
external diff died, stopping at readme.txt.
Rich:mygittest (master *)
$
我不明白什么使这项工作?Tortoisemerge 与 TortoiseSVN 一起安装。