Use*_*987 13 git push bitbucket visual-studio-extensions bitbucket-server
当我尝试通过Visual Studio的Git扩展将任何内容推送到我的bitbucket存储库时出错:
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
HttpRequestException encountered.
An error occurred while sending the request.
cannot spawn /C/Program Files (x86)/Microsoft Visual Studio/2017/Community/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
could not read Password for ......
Run Code Online (Sandbox Code Playgroud)
这可能是什么问题?
Vla*_*nko 16
原因:同样的错误消息是几个月前GitHub弃用了对TLS1.0和TLS1.1的支持.现在,看起来Atlassian在8月18日(https://blog.bitbucket.org/2018/08/06/update-ip-migration/)对BitBucket的网络进行了一些更改.这种变化可能与问题有关.
解决方法: Visual Studio 2017中捆绑的Git-Credential-Manager-for-Windows尚未发布最新版本.下载最新版本并将其置于Visual Studio 2017中的文件之上可解决此问题:
此外,您似乎需要从远程设置中删除"登录"(如果已配置)(即将https://login@bitbucket.org/myrepo/myproject.git更改为https://bitbucket.org/myrepo/myproject.git)使用Atlassian ID代替完整的电子邮件.
(来源)