无法克隆 socket.io 子模块


C:UsersrajDesktop>git clone --recursive -j8 https://github.com/saikat/DrawTogether.git
Cloning into 'DrawTogether'...
remote: Enumerating objects: 505, done.
remote: Total 505 (delta 0), reused 0 (delta 0), pack-reused 505
Receiving objects: 100% (505/505), 1.04 MiB | 2.10 MiB/s, done.
Resolving deltas: 100% (75/75), done.
Submodule 'lib/socket.io' (git://github.com/LearnBoost/Socket.IO-node.git) registered for path 'lib/socket.io'
Cloning into 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io'...
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Unknown error
fatal: clone of 'git://github.com/LearnBoost/Socket.IO-node.git' into submodule path 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io' failed
Failed to clone 'lib/socket.io'. Retry scheduled
Cloning into 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io'...
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Unknown error
fatal: clone of 'git://github.com/LearnBoost/Socket.IO-node.git' into submodule path 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io' failed
Failed to clone 'lib/socket.io' a second time, aborting

在那之后,我尝试了

git子模块初始化
git子模件更新

Cloning into 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io'...    fatal: unable to connect to github.com: github.com[0:
20.205.243.166]: errno=Unknown error
fatal: clone of 'git://github.com/LearnBoost/Socket.IO-node.git' into    submodule path 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io'    failed Failed to clone 'lib/socket.io'. Retry scheduled Cloning into    'C:/Users/raj/Desktop/DrawTogether/lib/socket.io'... fatal: unable to    connect to github.com: github.com[0: 20.205.243.166]: errno=Unknown    error
fatal: clone of 'git://github.com/LearnBoost/Socket.IO-node.git' into    submodule path 'C:/Users/raj/Desktop/DrawTogether/lib/socket.io'    failed Failed to clone 'lib/socket.io' a second time, aborting

给出与以前相同的错误。搞不清楚

在存储库中https://github.com/saikat/DrawTogether子模块是用CCD_ 1协议声明的,但该协议早在Github上就被禁用了。必须通过将协议更改为https://来修复存储库。

同时,您可以使用url..insteadOf动态修复URL:

git config --global url.https://github.com.insteadOf git://github.com

然后再次克隆或更新子模块:

git clone --recursive https://github.com/saikat/DrawTogether.git

cd DrawTogether
git submodule update --recursive

最新更新