问题描述:

今天想将本地文件push到github的仓库时,频繁报错,错误提示如下:

fatal: unable to access 'https://github/JhouXu/guiyi.git/': Failed to connect to github port 443: Timed out


原因分析:

翻译之后大意是:无法连接到github端口443:超时。
在刚开始的时候需要github的用户名及密码,但是没有登录成功,导致没有push的权限。

解决方案:

通过输入以下命令
// 检查代理
git config --global http.proxy
// 取消代理
git config --global --unset http.proxy
重新进行push命令,就会提示登录了,按照指示正确登录就可以了。

更多推荐

fatal: unable to access ‘https://github.com/JhouXu/guiyi.git/‘: Failed to connec