key不包含section:mergetool

时间:2018-01-22 03:14:38

标签: git

我不知道我是怎么做到这一点的,我正在尝试将kdiff3设置为我的合并工具但是当我写git config --global mergetool kdiff3时我收到此错误key does not contain a section: mergetool我检查了我的配置列表并取消设置了我在那里的mergetool配置,所以我现在拥有的是:

$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
user.email=nick@anideaforanapp.com
user.name=Naguib Ihab
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://omitted
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.report-visualisation.remote=origin
branch.report-visualisation.merge=refs/heads/report-visualisation
branch.report-visualisation_nvd3.remote=origin
branch.report-visualisation_nvd3.merge=refs/heads/report-visualisation_nvd3

知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

尝试git config --global merge.tool kdiff3

,密钥mergetool用于配置一个合并工具,例如mergetool.kdiff3.path