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