从github中复制代码出现一下两种报错
1、Failed to connect to github.com port 443: 连接超时
2、Failed to connect to github.com port 443: 拒绝连接
解决办法如下:
https://www.ipaddress.com/
github.com的IP地址为140.82.114.3
终端打开hosts文件加入140.82.114.3 github.com
sudo gedit /etc/hosts
现在又报错: gnutls_handshake() failed: Error in the pull function.试了以下代码未解决
sudo apt-get update
sudo apt-get install openssl
最后取消代理还是不行
git config --global --unset http.https://github.com.proxy