Git_Clone大项目超过1G失败解决方案

SourceForge.net,又称SF.net,是开源软件的开发者进行开发管理的集中式场所,也是全球最大开源软件开发平台和仓库。FlightGear的源代码就托管在该平台。最近在使用Git克隆FlightGear的子项目fgdata时,老是到1G时失败。具体情况如下:

1
2
3
4
5
6
7
8
9
# git clone fgdata大项目时超过1G就会出错
$ git clone https://git.code.sf.net/p/flightgear/fgdata
Cloning into 'fgdata'...
remote: Counting objects: 61455, done.
remote: Compressing objects: 100% (27321/27321), done.
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

经多种方案尝试,使用如下方法可避免该问题:

1
$ git clone git://git.code.sf.net/p/flightgear/fgdata

参考链接

  1. FGdata downloading error,by flightgear forum.
  2. SourceForge Support,by sourceforge.
  3. git clone 太慢怎么办?, by aneasystone.