Could not resolve host: github.com.cnpmjs.org

1问题

Could not resolve host: github.com.cnpmjs.org

$ git clone -b r1.13.0 https://github.com.cnpmjs.org/tensorflow/models.git
Cloning into 'models'...
fatal: unable to access 'https://github.com.cnpmjs.org/tensorflow/models.git/': Could not resolve host: github.com.cnpmjs.org

在这里插入图片描述
git clone,太慢,使用了 github.com.cnpmjs.org 这个镜像网站,结果push不上。

2如何解决

用hub.fastgit.xyz代替github.com.cnpmjs.org镜像网站

git config --global url."https://hub.fastgit.xyz/".insteadOf https://github.com/

直接在git控制台上输入这段,然后用git下载GitHub链接时就会自动替换成镜像下载.

猜你喜欢

转载自blog.csdn.net/qq_44985985/article/details/124180083