我是Git的新手:我试图将其与VSCode集成,但出现此错误
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>'
这似乎不是VSCode克隆问题,而是cURL问题,例如winlibs/cURL issue 14
首先检查是否已定义代理(env|grep -i proxy
)。
如上所述,语法可能不正确。
如果未链接到代理本身,则取决于当前安装的curl
版本。
where curl
可以是:
C:\Windows\System32\curl.exe
)C:\path\to\Git\mingw64\bin\curl.exe
)尝试在设置了简化路径的CMD中启动VSCode:
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%
[使用C:\path\to\git
一个文件夹,您已在其中解压缩了最新的Git PortableGit-2.23.0-64-bit.7z.exe
然后键入:
PortableGit-2.23.0-64-bit.7z.exe