github推送
问题描述:
fatal: unable to access 'https://github.com/xxxxx/xxxx.git/': Failed to connect to github.com port 443 after 21117 ms: Cou ld not connect to server
解决方案:代理
首先查看自己的代理软件http端口号是多少,以v2``ray为例:

由图可知它的http端口号是10809,
于是设置代理:
git config --global http.proxy 127.0.0.1:10809
git config --global https.proxy 127.0.0.1:10809
但是这样做,碰到国内的git网站的时候也可能出现过访问不上的情况,可以取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

浙公网安备 33010602011771号