Reputation: 13
I'm new to Git: I was trying to integrate it with VSCode, but getting this error
git clone https://github.com/vijaypatneedi/DS.git f:\VS Code\DSA\DS
Cloning into 'f:\VS Code\DSA\DS'...
fatal: unable to access 'https://github.com/vijaypatneedi/DS.git/': Unsupported proxy syntax in '<proxy-server-url>:<port>'
Upvotes: 1
Views: 8900
Reputation: 1323115
This does not seem to be a VSCode clone issue, but rather a cURL issue, like winlibs/cURL issue 14
Check first if you have defined a proxy (env|grep -i proxy
).
As stated, the syntax might be incorrect.
If this is not linked to the proxy itself, it then depends on your curl
version currently installed.
where curl
It can be:
C:\Windows\System32\curl.exe
)C:\path\to\Git\mingw64\bin\curl.exe
)Try and launch VSCode in a CMD where you have set a simplified PATH:
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\git
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\cmd;%GH%\mingw64\bin;%PATH%
With C:\path\to\git
a folder where you have uncompressed the latest Git PortableGit-2.23.0-64-bit.7z.exe
Then type:
"%LOCALAPPDATA%\Programs\Microsoft VS Code\bin\code.cmd"
Upvotes: 1