I prefer to use meld
as the diff tool. However it doesn't have an option to quickly solve all simple conflicts so in case of merging I'd like to use kdiff3
I've set merge.tool
to kdiff3 and diff.guitool
to meld but git difftool
still always run kdiff3
[merge]
tool = kdiff3
conflictstyle = diff3
[diff]
guitool = meld
renames = copies
mnemonicPrefix = true
[difftool]
prompt = false
How to make git difftool
run meld
?
Note: since Git 2.22 (Q2 2019), the combinations of
{diff,merge}.{tool,guitool}
configuration variables serve as fallback settings of each other in a sensible order.See commit 6c22d71, commit 7f978d7, commit 60aced3, commit 884630b, commit 05fb872 (29 Apr 2019), and commit 57d93c1, commit e9d309e (24 Apr 2019) by Denton Liu (
Denton-L
).(Merged by Junio C Hamano --
gitster
-- in commit 85ac27e, 19 May 2019)In your case, since difftool is not defined:
The documentation now includes:
diff.guitool
only applies if you use the--gui
flag.Setting
diff.tool
andmerge.tool
should makegit difftool
andgit mergetool
use different tools: