Cloning into D:\.. error: cannot spawn C:\.., permission denied fatal [Github Desktop]

Cloning into D:\.. error: cannot spawn C:\.., permission denied fatal [Github Desktop]

Cloning into D:\.. error: cannot spawn C:\.., permission denied fatal: could not read Username for https://github.com: terminal promprs disabled

当我尝试从 github 桌面克隆远程仓库时出现此类错误,可能是什么原因导致此错误?我的双盘分区

注意: 我有权克隆远程仓库

如果您没有最新的 GitHub Desktop,请先更新它,然后检查当前设置的凭据管理器(如

对于Windows最新的Git,应该是:

git config credential.helper
# you should see
manager-core

注意:git-credential-manager-core.exe 可执行文件在 <C:\path\to\Git>\mingw64\libexec\git-core\ 中,因此您可能需要调整 %PATH% 才能引用它。

刚刚尝试以管理员身份执行 Github Desktop 并解决了问题

如果没有解决:

  • 如果 .bat 文件路径存在甚至文件存在,我也建议查看

  • 检查 github 和 git 的安装路径(确保它们不在不同的分区中)

  • 删除并重新安装 Github 桌面和所有依赖项(来自 AppData 和其他文件夹)