目前,每当我使用 git mergetool 时,它都会默认使用 TortoiseSvn 合并工具。
有没有办法将 git mergetool 配置为使用 TortoiseGit?
目前,每当我使用 git mergetool 时,它都会默认使用 TortoiseSvn 合并工具。
有没有办法将 git mergetool 配置为使用 TortoiseGit?
这可能是一个路径问题(TortoiseSVN/bin
先来的路径,之前TortoiseGit/bin
)。
但是您可以使用以下配置明确定义mergetool
您想要的:
git config merge.tool tortoise
git config mergetool.tortoise.cmd "c:/Program Files/TortoiseGit/bin/TortoiseMerge.exe" \
/base:"$BASE" /theirs:"$REMOTE" /mine:"$LOCAL" /merged:"$MERGED"