0

我无法克隆带有子模块的 git 存储库。

$ git clone --recursive https://www.github.com/lagadic/visp_auto_tracker.git

克隆到“visp_auto_tracker”...
远程:计数对象:275,完成。
远程:压缩对象:100% (222/222),完成。
远程:总计 275(增量 154),重复使用 157(增量 42)
接收对象:100%(275/275),44.52 KiB,完成。
解决增量:100% (154/154),完成。
子模块“flashcode_mbt”(git://github.com/lagadic/flashcode_mbt.git)为路径“flashcode_mbt”注册
克隆到“flashcode_mbt”...
致命:无法连接到
github.com:github.com [0:192.30 .252.131]: errno=连接超时

将“git://github.com/lagadic/flashcode_mbt.git”克隆到子模块路径“flashcode_mbt”失败。

这发生在 UbuntuLTS12.04 git 版本 1.7.9.5 以及 Fedora17 git 版本 1.7.11.7 上。

看来肯定是网络问题。因为我要求不同网络上的其他用户这样做并且它有效。你们中有人遇到过类似的问题吗?谢谢你的帮助。

4

1 回答 1

0

您很可能需要9418为 TCP 输入/TCP 输出打开端口

git config --global user.name <your_name>如果您还没有使用,您可能还需要设置您的全局用户。

于 2014-01-19T02:29:05.180 回答