Appearance
Recv failure: Connection was reset
Failed to connect to github.com port 443 after 21098 ms: Could not connect to server在终端执行:
bash
git remote -v确认远程地址是否正常。
GitHub HTTPS 经常出现连接失败。优先检查代理。
查看 Git 当前代理:
bash
git config --global --get http.proxy
git config --global --get https.proxy如果你有本地代理,例如 Clash/V2Ray 常见端口是 7890,可以设置:
bash
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890如果你的代理端口不是 7890,换成实际端口。
如果之前配置了错误代理,清除:
bash
git config --global --unset http.proxy
git config --global --unset https.proxy然后重试:
bash
git pull --tags origin main一般此时即可解决 Github HTTPS Error