在執(zhí)行 git clone
命令遇到以下錯(cuò)誤:
remote: Enumerating objects: 1252, done.
remote: Counting objects: 100% (1252/1252), done.
remote: Compressing objects: 100% (788/788), done.
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
參考 Github - unexpected disconnect while reading sideband packet,對于 CMD,執(zhí)行
set GIT_TRACE_PACKET=1
set GIT_TRACE=1
set GIT_CURL_VERBOSE=1
對于 Linux,執(zhí)行
export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1
對于 PowerShell,執(zhí)行
$env:GIT_TRACE_PACKET=1
$env:GIT_TRACE=1
$env:GIT_CURL_VERBOSE=1
然后執(zhí)行文章來源:http://www.zghlxwxcb.cn/news/detail-503062.html
git config --global core.compression 0
git clone --depth 1 <repo_URI>
# cd to your newly created directory
git fetch --unshallow
git pull --all
注意:這里的倉庫 URI 必須為 HTTP(https://github.com/),不能為 SSH(git@github.com:)。文章來源地址http://www.zghlxwxcb.cn/news/detail-503062.html
到了這里,關(guān)于Git clone fetch-pack unexpected disconnect while reading sideband packet的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!