如下问题可能的解决方法:
增加超时时间:可以通过设置 Git 的超时时间来尝试解决超时问题。你可以执行以下命令来设置超时时间:
git config --global http.postBuffer 524288000# 设置 POST 缓冲区大小
git config --global http.lowSpeedLimit 0# 设置低速限速为 0
git config --global http.lowSpeedTime 999999# 设置低速限速时间为一个非常大的值
git config --global http.keepaliveTimeout 600# 设置 keepalive 超时时间
git config --global core.compression -1# 禁用压缩
git config --global ssh.postBuffer 524288000# 设置 SSH 缓冲区大小
git config --global ssh.timeout 600# 设置 SSH 超时时间
问题:
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
fatal: unable to access 'https://github.com/KDE/kde1-kdebase.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
POST git-upload-pack (185 bytes)
POST git-upload-pack (227 bytes)
error: RPC failed; curl 28 Recv failure: Connection was reset
fatal: expected 'packfile'
fatal: unable to access 'https://github.com/bminor/glibc.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
POST git-upload-pack (185 bytes)
POST git-upload-pack (gzip 98527 to 39980 bytes)
error: RPC failed; curl 18 HTTP/2 stream 5 was not closed cleanly before end of the underlying stream
error: 5941 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output