无法通过 git 下载 vcpkg



当我使用 git 下载 vcpkg 时,它说不受支持的代理语法':'

我在powershell上使用以下命令:

git clone https://github.com/microsoft/vcpkg.git

它返回:

fatal:unable to access 'https://github.com/microsoft/vcpkg.git': Unsupported proxy syntax in '<host>:<port>'

我的笔记本电脑不应该有任何代理设置,以及 git。 有谁知道如何解决这个问题?谢谢!

你有环境变量HTTPS_PROXY='<host>:<port>'HTTP_PROXY='<host>:<port>'。如果您没有在当前终端中取消设置代理:

unset HTTP_PROXY HTTPS_PROXY

并从外壳配置文件中删除。在~/.profile~/.bash_profile~/.bashrc中搜索它们。

最新更新