我无法从vscode访问github存储库 [英] I'm not able to access github repository from vscode

查看:930
本文介绍了我无法从vscode访问github存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Git的新手:我试图将其与VSCode集成,但遇到此错误

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>'

推荐答案

这似乎不是VSCode克隆问题,而是cURL问题,例如

This does not seem to be a VSCode clone issue, but rather a cURL issue, like winlibs/cURL issue 14

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

Check first if you have defined a proxy (env|grep -i proxy).

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

As stated, the syntax might be incorrect.

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

If this is not linked to the proxy itself, it then depends on your curl version currently installed.

where curl

可以是:

  • Windows 10(C:\Windows\System32\curl.exe)中的一个
  • 来自Git(C:\path\to\Git\mingw64\bin\curl.exe)的那个人
  • the one from Windows 10 (C:\Windows\System32\curl.exe)
  • the one from Git (C:\path\to\Git\mingw64\bin\curl.exe)

尝试在设置了简化路径的CMD中启动VSCode:

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%

使用C:\path\to\git文件夹解压缩最新的Git

With C:\path\to\git a folder where you have uncompressed the latest Git PortableGit-2.23.0-64-bit.7z.exe

然后输入:

"%LOCALAPPDATA%\Programs\Microsoft VS Code\bin\code.cmd"

这篇关于我无法从vscode访问github存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆