【问题标题】:Git complains about no such file or directory when using difftoolGit 在使用 difftool 时抱怨没有这样的文件或目录
【发布时间】:2020-02-04 19:22:21
【问题描述】:

我将 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

【问题讨论】:

    标签: git git-difftool


    【解决方案1】:

    也许你需要在你的 PATH 变量上定义 kdiff3

    【讨论】:

      【解决方案2】:

      我必须下载 this script 并将其放在我的路径中。

      【讨论】:

        猜你喜欢
        • 2013-05-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-05-01
        • 2015-07-29
        • 1970-01-01
        相关资源
        最近更新 更多