解决GitHub连不上的问题fatal: unable to access ‘https://github.com/..’: Failed to connect to github.com port

解决GitHub连不上的问题

fatal: unable to access ‘https://github.com/dmlc/dgl.git’: Failed to connect to github.com port 443: Connection refused

1、使用ssh key

在这里插入图片描述
在终端输入:

git clone git@github.com:dmlc/dgl.git

配置ssh key见下方链接
https://blog.csdn.net/u013778905/article/details/83501204

2、git submodule update --init --recursive 连不上的问题

终端输入

git config --global url."git://".insteadOf http://
git config --global url."git://".insteadOf https://

详细看下方链接:
https://blog.csdn.net/zbw2015623/article/details/120865651


版权声明:本文为weixin_44031582原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。