本文是记录关于如何解决 “Github上传以及Clone时发生的 Failed to connect to github.com port 443: Timed out 错误”
看了很多网络上的解决方案,总结一下
1. 关闭服务器
有可能是代理服务器导致的连接Github失败,但这个方法和下面的端口号占用我都没有尝试
2.端口号被占用
这个方法没有尝试
3.重新设置git的代理
git config --global http.proxy "127.0.0.1:1080"
这也没有解决我的问题,而且出现了新错误
Failed to connect to 127.0.0.1 port 1080: Connection refused
所以我取消了代理
git config --global --unset http.proxy
4.修改Hosts文件
在 Win10 系统Hosts文件在C:WindowsSystem32driversetc目录下
把所有github.com都注释即可