git下載的時候出現(xiàn)的錯誤
錯誤輸出:
fetch-pack: unexpected disconnect while reading sideband packet
Connection to bitbucket.org closed by remote host.
fatal: 過早的文件結(jié)束符(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