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

Visual studio Visual Studio 15.7.6更新问题:获取时遇到错误:Git失败,出现致命错误。,visual-studio,github,bitbucket,visual-studio-extensions,Visual Studio,Github,Bitbucket,Visual Studio Extensions,将Visual Studio 2017更新为15.7.6版后,我在执行同步或获取时将收到以下错误消息: 获取时遇到错误:Git失败,出现致命错误。 遇到HttpRequestException。发送时出错 请求。无法生成/C/程序文件(x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec

将Visual Studio 2017更新为15.7.6版后,我在执行同步或获取时将收到以下错误消息:

获取时遇到错误:Git失败,出现致命错误。 遇到HttpRequestException。发送时出错 请求。无法生成/C/程序文件(x86)/Microsoft Visual Studio/2017/Enterprise/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/Git-core/Git-askpass.exe:没有此类文件或 目录无法读取“”的密码: 终端提示已禁用

这个问题是一个bug,但是有解决方法吗

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

是的,这是Github上的一个已知问题:

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

凯文拉姆哈拉克:

下载最新版本并将其放在 VIsual Studio 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可供下载。 虽然这不会直接解决VisualStudio能够 要成功使用BitBucket进行身份验证,它应该取消阻止您 如果你

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

附言:是的,我们仍在努力寻求更持久的解决方案,但我 希望尽早提供一个可行的解决方案


希望这能有所帮助。

我尝试了@Leo Liu MSFT的答案,但对我来说不起作用,唯一有效的方法是在比特桶URL中添加密码