fatal: unable to access 'https://github.com/xxx': Connection timed out after 300040 milliseconds

这是由于设置了代理,现在代理不可用了,可以运行下面的语句查看一下

$ git config --global http.proxy

会输出配置代理的信息

然后输入下面的语句重置一下就好了

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

 设置代理参考 解决github clone慢的问题

原文地址:https://www.cnblogs.com/studywithallofyou/p/12876385.html