【Git】Clone
当git clone失败时,出现 RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8) 错误,可能由于网络连接不稳定或仓库太大导致的。
 可以尝试以下几种方法来解决这个问题:
-  增加 Git 的缓冲区大小: git config --global http.postBuffer 524288000
-  使用 HTTP/1.1: git config --global http.version HTTP/1.1
-  浅克隆: 先进行浅克隆,然后再获取完整的历史记录: git clone --depth 1 <repository_url> cd <repository_directory> git fetch --unshallow
-  使用 SSH 克隆: 如果可能,尝试使用 SSH 而不是 HTTP 进行克隆: git clone git@github.com:<username>/<repository>.git
