如何从 git 克隆一个巨大的 repo

How to clone a huge repo from git

回购大小:15GB

尝试克隆:

git clone ssh://user@localhost:29418/Repo

但它失败了:

远程:计数对象:983937,完成 远程:寻找来源:100% (983937/983937) 致命:内部服务器 error248/983937),1.14 GiB | 991.00 KiB/s 远程:内部服务器错误 致命的:早期的 EOF 致命:索引包失败

git clone --depth 1 reponame.git

cd reponame.git

git fetch --unshallow