git下载的时候出现的错误
错误输出:
fetch-pack: unexpected disconnect while reading sideband packet
Connection to bitbucket.org closed by remote host.
fatal: 过早的文件结束符(EOF)
fatal: fetch-pack:无效的 index-pack 输出
error: 不能获取 origin
解决办法
git config --global core.compression 0
repo_URI 项目地址 <git@host:user/my_project.git>这种方式
git clone --depth 1 <repo_URI>
When that works, go into the new directory and retrieve the rest of the clone:
git fetch --unshallow
or, alternately,
git fetch --depth=2147483647
git pull --all