Git clone UE5 源码,由于源码太大,重复几次都是失败
当 Git clone 代码到最后出现 fetch-pack: unexpected disconnect while reading sideband
fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack:
packet fatal: early 时,大多是因为仓库代码太大,无法一次clone下来,这时需要如下操作:
git clone --depth 1 https://github.com/dogescript/xxxxxxx.git
git fetch --unshallow
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch -pv
git fetch --all