【问题标题】:Cloning repository via visual studio shows error: cannot spawn askpass: No such file or directory通过 Visual Studio 克隆存储库显示错误:无法生成 askpass:没有这样的文件或目录
【发布时间】:2018-04-10 08:39:17
【问题描述】:

我在 git hub 上有一个存储库,我正在尝试将此存储库克隆到另一台计算机。 我要去repository->在visual studio中打开->电脑填好repository地址和保存的文件夹后,我按clone,但是出现如下错误:

Git 因致命错误而失败。

致命:遇到 AggregateException。 发生了一个或多个错误。

错误:无法生成 askpass:没有这样的文件或目录

致命:无法读取“https://github.com”的用户名:终端提示已禁用`

我尝试了以下方法:

将存储库地址更改为git@github.com/User_Name/project_name.git

也试过https://{username}:{password}@github.com/{username}/project.git

我还应该做什么? 谢谢!

【问题讨论】:

标签: git github visual-studio-2017 git-clone git-credential-manager


【解决方案1】:

您的 Visual Studio 2017 安装具有适用于 Windows 的较旧版本的 Git 凭据管理器。升级到最新版本并在全局 git config 中配置此特定安装,以确保 Visual Studio 了解可用的最新 GCM。

另见(不同的问题,相同的问题):

【讨论】:

    猜你喜欢
    • 2019-04-20
    • 2015-07-29
    • 2021-02-15
    • 1970-01-01
    • 2020-04-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多