VSCode and Git 安装使用问题汇总
VSCode and Git 安装使用问题汇总
- Q: Failed to connect to github.com port 443: Connection refused
- Q: GIT警告 TLS certificate verification has been disabled!
- Q: OpenSSL SSL_read: Connection was reset, errno 10054
- Q: warning: could not find UI helper 'GitHub.UI'
安装环境:windows11
Visual Studio Code 下载地址:https://code.visualstudio.com/
Git 下载地址:https://github.com/git-for-windows/git/releases
TortoiseGit 下载地址:https://tortoisegit.org/download/
Q: Failed to connect to github.com port 443: Connection refused
描述:在VSCode或者TortoiseGit中Push(推送)到GitHub的时候报以上错误。一开始查找解决方法以为是开梯子的原因,尝试重置代理或者取消代理的方式:
git config --global --unset http.proxy
git config --global --unset https.proxy
添加全局代理:
git config --global http.proxy
git config --global https.proxy
用以上方法并未解决,采用以下方法:
即:修改hosts文件,修改ip地址和域名的映射关系,在DNS解析前先会尝试走hosts然后在找不到的的情况下再DNS解析,修改hosts文件域名解析就会先走hosts中的ip和域名的映射关系。
A:
-
1.先获取GitHub的ip地址。
-
2.通过如下路径找到host文件:
C:\Windows\System32\drivers\etc
-
3.如下图把GitHub的ip地址复制到host文件中保存即可。
Q: GIT警告 TLS certificate verification has been disabled!
A:
- 1.启动 GitBush
- 2.执行:
git config --global http.sslVerify true
Q: OpenSSL SSL_read: Connection was reset, errno 10054
A:
报错原因: 字面意思:服务器的SSL证书灭有经过第三方机构的签署。 网上信息也有的说可能是网络不稳定,连接超时导致。
解决办法:
- 1.启动 GitBush
- 2.执行:
git init
Q: warning: could not find UI helper 'GitHub.UI'
A:
version 2.39的bug导致无法显示登录UI界面,请尝试旧版本如2.38.X
- 1.Uninstall the currently installed git.
- 2.Go to https://github.com/git-for-windows/git/releases/tag/v2.38.1.windows.1 to download the git v(2.38.1)
- 3.Install the git v(2.38.1)
[参考方案
]^1
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· C#/.NET/.NET Core技术前沿周刊 | 第 29 期(2025年3.1-3.9)
· 从HTTP原因短语缺失研究HTTP/2和HTTP/3的设计差异