You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows 11下配置Git使用Meld作为差异/合并工具时临时文件读取失败的问题求助

Windows 11下配置Git使用Meld作为差异/合并工具时临时文件读取失败的问题求助

我现在在Windows 11上,想把Meld配置成Git的差异/合并工具,就跟我在Linux上用的方式一样。

Meld能通过git difftool --dir-diff正常启动,但看起来没法读写临时目录里的内容——Meld自己的UI里弹出了下面的错误:

There was a problem opening the file “C:\Users\myusername\AppData\Local\Temp\git-difftool.a09536\left”.
Error opening file C:\Users\myusername\AppData\Local\Temp\git-difftool.a09537\left: No such file or directory

右边面板也有类似的错误提示。

下面是我C:\Users\myusername\.gitconfig里的相关配置内容:

[merge]
tool = meld_conf
conflictstyle = diff3
prompt = false

[mergetool "meld_conf"]
cmd = meld --auto-merge $LOCAL $BASE $REMOTE --output $MERGED --diff $LOCAL $BASE --diff $BASE $REMOTE

[difftool]
prompt = true

[diff]
tool = meld
renames = true
colorMoved = default
indentHeuristic = true

我的Git版本信息:

git --version
git version 2.41.0.windows.1

Meld是3.22.0版本,通过Chocolatey安装的。

有没有大佬能给点解决建议呀?

备注:内容来源于stack exchange,提问作者laur

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 08:59:31