我将 git 配置为使用 kdiff3 但它似乎给了我以下错误:
$ GIT_TRACE=1 git difftool
09:23:36.319531 git.c:419 trace: built-in: git difftool
09:23:36.321130 run-command.c:643 trace: run_command: GIT_EXTERNAL_DIFF=git-difftool--helper GIT_PAGER= git diff
09:23:36.322094 git.c:419 trace: built-in: git diff
09:23:36.340596 run-command.c:643 trace: run_command: GIT_DIFF_PATH_COUNTER=1 GIT_DIFF_PATH_TOTAL=3 git-difftool--helper init.el /tmp/LqOdEz_init.el 397ab56b39cf979c392c807c714cade1b949d1dd 100644 init.el 0000000000000000000000000000000000000000 100644
error: cannot run git-difftool--helper: No such file or directory
fatal: external diff died, stopping at init.el
我的配置是:
[diff]
tool = kdiff3
[difftool]
prompt = false
[difftool "kdiff3"]
cmd = kdiff3 "$LOCAL" "$REMOTE"
有什么想法吗?如果这有所作为,我在 linux 上并且我正在使用git version 2.21.0