【发布时间】:2012-04-04 07:23:41
【问题描述】:
我在 mac OSX Snow Leopard 上有 Git,我尝试编辑我的合并和差异工具以使用 kdiff3 而不是emerge。
但是当我尝试使用它时,它不会启动 kdiff 的 GUI,而是让我使用基于 cmd 的界面。
我在 gitconfig 中的设置是:
[merge]
tool = kdiff3
[mergetool "kdiff3"]
cmd = /Applications/kdiff3.app/Contents/MacOS/kdiff3
args = $base $local $other -o $output
trustExitCode = false
[diff]
tool = kdiff3
[difftool "kdiff3"]
cmd = /Applications/kdiff3.app/Contents/MacOS/kdiff3
args = $base $local $other -o $output
trustExitCode = false
显然缺少一些东西,但我做错了什么?
【问题讨论】:
-
这将有助于发布您用于差异的命令
-
确定我做了 git difftool -t kdiff3 和 git mergetool -t kdiff3
-
刚刚安装了带有 brew 和 mine 的 kdiff3,没有定义
[mergetool]或[difftool]。只是tool = kdiff3。你试过了吗?
标签: macos git merge config kdiff3