git 拉取子模块出错can not find github.com port 9418

git submodule update –init –recursive

出错信息:

can not find github.com port 9418

fatal: unable to connect to github.com:

github.com[0: 20.205.243.166]: errno=Connection timed out

fatal: clone of ‘git://github.com/mapsme/Alohalytics.git’ into submodule path ‘/root/omim/3party/Alohalytics’ failed

解决方法如下:

git config –global url.”https://github.com/”.insteadOf git://github.com/

 

作者: hqiang1984

量化自我,极简主义