github可以访问无法提交代码
解决方法:
# 配置VPN的代理端口
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
【1080是VPN的代理端口】
提交代码时候报错:
fatal: unable to access 'https://github.com/iswuwenjun/electron-wwj.git/': OpenSSL SSL_read: Connection was reset, errno 10054
unable to access 'https://github.com/iswuwenjun/learn-wwj.git/': Failed to connect to github.com port 443 after 21073 ms: Timed out
连接公司内网,如果添加了VPN的代理端口需要先清空:
-
清空代理
git config --global --unset http.proxy
git config --global --unset https.proxy
-
配置hosts
-
配置DNS
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」