【git push -u origin main】出错

【git push -u origin main】出错[error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8]

废柴第一次使用Git(咳咳

出现问题:
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)

【git push -u origin main】出错_第1张图片
解决办法:

// 更换http版本
git config --global http.version HTTP/1.1

在这里插入图片描述

成功:
【git push -u origin main】出错_第2张图片

你可能感兴趣的:(Git)