问题
在使用 git 向 github 上传文件时,在 git push origin master 这一步报告以下错误:
fatal: unable to access 'https://github.com/xxxxx.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
解决方案
1. 关闭正在使用的 github 所有页面和连接,然后再次push,可以成功上传
2. 将通信协议由 http/2 改为 http/1.1
git config --global http.version HTTP/1.1

被折叠的 条评论
为什么被折叠?



