使用 git 的时候发现一直提示 HTTP/2 stream 1 was not closed cleanly before end of the underlying stream。 通过排查发现,是 git 默认使用的通信协议出现了问题,可以通过将默认通信协议修改为 http/1.1 来解决该问题。
$ git config --global http.version HTTP/1.1
解决了这个问题之后 push代码出现了如下错误remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-url s for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/xxx.git/'
密钥代替密码Token
remote: Support for password authentication was removed on August 13,2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-url
s for information on currently recommended modes of authentication.
fatal: Authentication failed for'https://github.com/xxx.git/'