移除remote 

git remote remove origin


上传github时 遇到 Failed to connect to github.com port 443 after 21133 ms: Couldn't connect to server

 这是由于本机系统代理端口和git端口不一致导致的


解决办法:
一、查看自己本机系统代理:

设置---网络和Internet---代理---地址:端口


 二、修改git配置:(其中的10809改为你电脑的端口号)


git config --global http.proxy http://127.0.0.1:10809

git config --global https.proxy http://127.0.0.1:10809

三、再次push就可以成功上传。

另注:

去掉代理

git config --global --unset http.proxy
git config --global --unset https.proxy

使用Git push github仓库时一直报错

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