git clone error

error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 6319 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF

貌似是因为网络问题导致 HTTP2 连接中断,可以设置 http.version 或者 http.postBuffer 来解决问题

git config --global http.version HTTP/1.1
# or
git config --global http.postBuffer 157286400