Git complains about no such file or directory when using difftool

我怕爱的太早我们不能终老 提交于 2021-02-11 13:39:34

问题


I configured git to use kdiff3 but it seems to give me the following error:

$ 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

My configuration is:

[diff]
    tool  = kdiff3
[difftool]
    prompt = false
[difftool "kdiff3"]
    cmd = kdiff3 "$LOCAL" "$REMOTE"

Any Idea what's going on? I'm on linux if that makes a difference and I'm using git version 2.21.0


回答1:


Maybe you need to define kdiff3 on your PATH variable




回答2:


I had to download this script and put it in my path.



来源:https://stackoverflow.com/questions/58270536/git-complains-about-no-such-file-or-directory-when-using-difftool

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!