创建 git 仓库:
mkdir test
cd test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin https://gitee.com/xxx/test.git
git push -u origin "master"
已有仓库:
cd test
git remote add origin https://gitee.com/xxx/test.git
git push -u origin "master"
报错信息:
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
原因:
网络问题
尝试解决:
1.修改提交缓存(失败)
git config --global http.postBuffer 524288000
2.配置git的最低速度和最低速度时间(成功)
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999