git - ServicePointManager 不支持 net4bsl.bsl.co.uk 方案的代理

标签 git visual-studio tfs azure-devops

我在工作时尝试在 Visual Studio 2017 中的 Team Foundation Serer 上同步团队项目时出现此错误

Git failed with a fatal error.

NotSupportedException encountered.

   The ServicePointManager does not support proxies with the net4bsl.bsl.co.uk scheme.

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 Username for 'https://ams-british-steel.visualstudio.com': terminal prompts disabled

这是我配置的代理

git config --global http.proxy net4bsl.bsl.co.uk:8080

有什么想法吗?

最佳答案

检查您是否设置了 Windows 环境变量 HTTP_PROXY 和 HTTPS_PROXY。如果设置了它们,请确保将架构(http 和 https)写在那里。如果您修改该变量,请重新启动终端并重试。

我遇到了同样的问题,我就是这样解决的。

关于git - ServicePointManager 不支持 net4bsl.bsl.co.uk 方案的代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53599070/

相关文章:

iphone - 为安装 RestKit 添加 git 子模块错误

git - EGIT 分支本地与远程跟踪

visual-studio - 如何使 Visual Studio 在 80 个字符处换行?

c# - Visual Studio 的C# intellisense 能否提示先显示某个方法重载?

TFS结帐锁定最佳做法

git - 有没有办法使用 GPG key 在 Git 中提交 "autosign"?

visual-studio - 您可以将文档和电子表格添加到 Visual Studio 项目吗?

visual-studio - 让 Visual Studio 在每次构建时运行 T4 模板

tfs - 有没有办法找出我没有同步到哪些变更集?

Git-svn克隆错误: "fatal: Not a valid object name ' refs/remotes/tags/Tag With Spaces'"