git config --global http.version HTTP/1.1
Git 默认使用 HTTP/2 协议,但某些网络环境可能不支持或不兼容。可以通过禁用 HTTP/2 来解决问题
清除git代理缓存
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset http.version
git config --global http.version HTTP/1.1
Git 默认使用 HTTP/2 协议,但某些网络环境可能不支持或不兼容。可以通过禁用 HTTP/2 来解决问题
清除git代理缓存
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset http.version