ホストを解決できませんでした: github.com.cnpmjs.org

1 つの質問

ホストを解決できませんでした: 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 が遅すぎるため、ミラー Web サイト github.com.cnpmjs.org を使用しましたが、プッシュに失敗しました。

2 解決方法

github.com.cnpmjs.org ミラー サイトを Hub.fastgit.xyz に置き換えます。

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

この段落を git コンソールに直接入力すると、git を使用して GitHub リンクをダウンロードすると、自動的にミラー ダウンロードに置き換えられます。

おすすめ

転載: blog.csdn.net/qq_44985985/article/details/124180083