Git推送报错:unable to access 'https://github.com/xxxxxxxxxxxx.git/': Recv failure: Connection was reset

Git推送到新分支报错:unable to access 'https://github.com/xxxxxxxxxxxx.git/': Recv failure: Connection was reset

 

原因:连接没有释放

 

解决方案:

1、在git中执行以下命令:

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

 

2、在cmd下执行以下命令:

ipconfig/flushdns

 

3、重新执行推送即可

 

posted @ 2023-03-01 14:17  麥女孩的小火柴  阅读(2317)  评论(0编辑  收藏  举报