$ git clone http://github.com/large-repository --depth 1
$ cd large-repository
$ git fetch --unshallow
$ git fetch --depth 1
$ git fetch --unshallow
摘自 Stackoverflow,解决远端文件太大等引起的 fetch 中断。
$ git clone http://github.com/large-repository --depth 1
$ cd large-repository
$ git fetch --unshallow
$ git fetch --depth 1
$ git fetch --unshallow
摘自 Stackoverflow,解决远端文件太大等引起的 fetch 中断。