VS Code配置代理解决“Failed to connect to github.com port 443 after 21045 ms: Could not connect to server”问题 发布于 2026年3月8日| 分类于 技术随笔| 标签 VS Code| 0 端口是7897 文章目录 隐藏 1 ChatGPT 说: 2 确认配置成功 ChatGPT 说: 很好,那就按 7897 端口给 Git 配代理即可。 在 PowerShell 里执行这两条: git config --global http.proxy http://127.0.0.1:7897 git config --global https.proxy http://127.0.0.1:7897 确认配置成功 运行: git config --global --get http.proxy git config --global --get https.proxy 应该看到: http://127.0.0.1:7897 http://127.0.0.1:7897 作者: 高志远 高志远,24岁,男生 查看高志远的所有文章
文章目录 隐藏 1 ChatGPT 说: 2 确认配置成功 ChatGPT 说: 很好,那就按 7897 端口给 Git 配代理即可。 在 PowerShell 里执行这两条: git config --global http.proxy http://127.0.0.1:7897 git config --global https.proxy http://127.0.0.1:7897 确认配置成功 运行: git config --global --get http.proxy git config --global --get https.proxy 应该看到: http://127.0.0.1:7897 http://127.0.0.1:7897