问题解决: github 上传代码 git push 报 port 443 Operation timed out

一、问题描述

github443

github 由于在外网,使用的时候难免出现问题。

突然 git push 代码到 github 的时候,报错如下:

fatal: unable to access 'https://github.com/JeffLi1993/xxx.git/': Failed to connect to github.com port 443: Operation timed out

描述是:无法访问 链接,操作超时导致链接失败。这是由于代理设置不正确导致的错误,可以这样操作

二、问题解决

尝试一下命令:

git config --global --unset http.proxy
git config --global --unset https.proxy

然后先 git pull 下,再 git push 解决

或者是网络原因,切个热点或者其他 WIFI 试试 ~


原文:https://www.bysocket.com/2021-12-06/github-push-433-timed-out.html
作者:泥瓦匠