gpt4 book ai didi

Git difftool 问题 : unable to create temp-file

转载 作者:太空狗 更新时间:2023-10-29 13:21:16 26 4
gpt4 key购买 nike

我将 git 与配置为 difftool 的 Kaleidoscope 一起使用。几个月来一直运行良好。它也在一两天前工作。今天,当我尝试做一个“git difftool”时,突然,git 报告

fatal: unable to create temp-file: No such file or directory

在谷歌上搜索表明这可能是本地 git 存储库中的目录权限问题。但是即使在对 git 存储库进行递归 chown 之后,情况也没有改善。

Git-difftool 文档没有提及它可能试图创建此临时文件的位置。有没有人知道如何找到这个?

最佳答案

正如我所说,这种消息通常取决于环境变量 $TMPDIR 的值。

在 OP 的情况下:

$TMPDIR was set to something crazy "/private/tmp/PKInstallSandbox.W1I4ev/tmp".
After a bit of googling, this is apparently an known issue with an installer of an app (TotalTerminal).
It did a self update today, but I didn't figure it would actually break something.

$TMPDIR 恢复为“正常”值(如 /tmp 或其他 MacOs-specific localtion )应该可以解决问题。

关于Git difftool 问题 : unable to create temp-file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6978501/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com