在执行 git pull
或者 git push
的时候遇到了两种报错:
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
或者
Failed to connect to github.com port 443 after 21052 ms: Could not connect to s erver
其实这都是git的端口与开的代理端口不一致导致的,只需要修改一下git的代理端口即可:
git config --global http.proxy 127.0.0.1:10809
git config --global https.proxy 127.0.0.1:10809
这里的端口号根据自己的代理软件实际情况来设置。