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的代理端口需要先清空:

  1. 清空代理

    git config --global --unset http.proxy

    git config --global --unset https.proxy

  2. 配置hosts

  3. 配置DNS

posted @   金木羽  阅读(176)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
点击右上角即可分享
微信分享提示