当前位置:   article > 正文

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

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

  • 1
  • 2
  • 3
  • 4

在这里插入图片描述
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/
  • 1

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/883237
推荐阅读
相关标签
  

闽ICP备14008679号