When I use git to download the vcpkg, it said Unsupported proxy syntax in':'
I use following command on powershell:
git clone https://github.com/microsoft/vcpkg.git
and it returns:
fatal:unable to access 'https://github.com/microsoft/vcpkg.git': Unsupported proxy syntax in '<host>:<port>'
My laptop should not have any proxy setting, as well as the git. Does anyone know how to fix this? Thank you!
You have environment variables HTTPS_PROXY='<host>:<port>'
and HTTP_PROXY='<host>:<port>'
. If you do not have proxy unset them in the current terminal:
unset HTTP_PROXY HTTPS_PROXY
and remove from the shell config file(s). Search them in ~/.profile
, ~/.bash_profile
and ~/.bashrc
.