【问题标题】:Visual Studio 15.7.6 Update Issue: Error encountered while fetching: Git failed with a fatal error.Visual Studio 15.7.6 更新问题:获取时遇到错误:Git 因致命错误而失败。
【发布时间】:2019-01-21 04:27:33
【问题描述】:

将 Visual Studio 2017 更新到 15.7.6 版后,我会在进行同步或获取时收到此错误消息:

获取时遇到错误:Git 因致命错误而失败。 遇到 HttpRequestException。发送时出错 请求。无法生成 /C/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/git-core/git-askpass.exe:没有这样的文件或 目录无法读取“https://ershadi@bitbucket.org”的密码: 终端提示已禁用

问题是一个错误,但有解决方法吗?

【问题讨论】:

    标签: visual-studio github bitbucket visual-studio-extensions


    【解决方案1】:

    Visual Studio 15.7.6 更新问题:获取时遇到错误:Git 失败并出现致命错误。

    是的,这是 Github 上的一个已知问题:Can't login to GitHub

    您可以尝试 KevinRamharak 和 whoisj 的解决方法:

    凯文拉姆哈拉克:

    下载最新版本并将其放在文件的顶部 视觉工作室 2017。

    1. download the zip file gcmw-v1.17.0.zip from https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases
    2. navigate to C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\ (or wherever your 'missing' git-askpass.exe resides).
    
    3. make a copy of the git-core folder and rename it backup or something like that
    4. put the files from the zip file on top of the contents of your new git-core folder and overwrite where prompted
    

    whoisj:

    我想宣布 GCM v1.17.1 预览版 1 可供下载。 虽然这不会直接解决 Visual Studio 的问题 要使用 BitBucket 成功进行身份验证,它应该会解除对您的阻止 如果你...

    下载并安装工具使用 Git for Windows 进行交互 您的 BitBucket 存储库以强制其进行身份验证的方式进行 使用 Atlassian 提供的 BitBucket 接口登录。一旦你已经 完成此操作后,您的凭据将缓存在 Windows 凭据中 Manager 和 Visual Studio 应该可以访问它们。请让我 知道这是怎么回事,祝你好运。

    PS。是的,我们仍在努力寻求更永久的解决方案,但我 希望尽早提供可能的解决方法。

    希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      我尝试了@Leo Liu-MSFT 的答案,但它对我不起作用,唯一有效的方法是将密码添加到位桶 URL 中

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2017-07-28
        • 2023-03-26
        • 1970-01-01
        • 2019-09-18
        • 2020-06-18
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多