【Git】:git 报错记录

1. fatal: unable to access 'https://github.com/cruxopen/openISP.git/': Recv failure: Connection was reset

系统:Windows 11

报错信息如下:

(base) PS D:\Project> git clone https://github.com/cruxopen/openISP.git
Cloning into 'openISP'...
fatal: unable to access 'https://github.com/cruxopen/openISP.git/': Recv failure: Connection was reset

一顿google之后到的解决方案:

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

ipconfig /flushdns  ## 刷新DNS缓存

此时又出现了新的报错:

(base) PS D:\Project> git clone https://github.com/cruxopen/openISP.git
Cloning into 'openISP'...
fatal: unable to access 'https://github.com/cruxopen/openISP.git/': Failed to connect to github.com port 443 after 22073 ms: Couldn't connect to server

重新运行如下命令就 OK 了:

git config --global --unset http.proxy
git config --global --unset https.proxy
posted @ 2024-01-20 00:03  rangoXTY  阅读(21)  评论(0)    收藏  举报