我无法从vscode访问github存储库

问题描述 投票:1回答:1

我是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>'
git github visual-studio-code vscode-settings
1个回答
0
投票

这似乎不是VSCode克隆问题,而是cURL问题,例如winlibs/cURL issue 14

首先检查是否已定义代理(env|grep -i proxy)。

如上所述,语法可能不正确。


如果未链接到代理本身,则取决于当前安装的curl版本。

where curl

可以是:

  • Windows 10中的那个(C:\Windows\System32\curl.exe
  • 来自Git的那个(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
© www.soinside.com 2019 - 2024. All rights reserved.