git clone 网络太差总是失败:error: RPC 失败。curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
❯ git clone https://github.com/Almamu/linux-wallpaperengine.git .
正克隆到 '.'...
remote: Enumerating objects: 6271, done.
remote: Counting objects: 100% (1447/1447), done.
remote: Compressing objects: 100% (628/628), done.
error: RPC 失败。curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 预期仍然需要 6355 个字节的正文
fetch-pack: unexpected disconnect while reading sideband packet
fatal: 过早的文件结束符(EOF)
fatal: fetch-pack:无效的 index-pack 输出
解决方法
git clone http://github.com/大仓库.git --depth 1
cd 大仓库
git fetch --unshallow