无法通过git下载vcpkg

无法通过git下载vcpkg,git,powershell,vcpkg,Git,Powershell,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>' 致命:无法访问'https://g

当我使用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>'
致命:无法访问'https://github.com/microsoft/vcpkg.git“:在“:”中不支持代理语法
我的笔记本电脑不应该有任何代理设置,就像git一样。
有人知道如何解决这个问题吗?谢谢大家!

您有环境变量
HTTPS\u PROXY=':'
HTTP\u PROXY=':'
。如果您没有在当前终端中取消设置代理:

unset HTTP_PROXY HTTPS_PROXY

并从shell配置文件中删除。在
~/.profile
~/.bash\u profile
~/.bashrc

set | grep-Fi(u proxy
)中搜索它们
git config-l | grep-Fi(u proxy
)?这些是git bash推荐的吗?set | grep-Fi(proxy)返回HTTPS_proxy=':'HTTP_proxy=':'no_proxy=“'git config-l | grep-Fi)proxy返回错误:未知开关'1'用法:git config[]Yes………它是小写的
l
(ell)而不是
1
(one)。谢谢!一旦我在环境变量中找到并删除了它们,它们终于起作用了!但是我不确定从哪里获取shell配置文件
~
意味着
$HOME