遇到这个问题。我们先查看一下Git的配置
git config --global --list
user.email=xxxx@xx.com
user.name=xxx
core.autocrlf=false
safe.directory=*
http.https://github.com.proxy=socks5://192.168.xx.xx:33210
https.https://github.com.proxy=socks5://192.168.xx.xx:33210
我的错误信息中提到了端口33210,这是一个非常不常见的端口,通常GitHub的连接会通过标准的HTTPS端口443。如果你的网络环境需要通过特定的端口访问互联网,需要配置Git或你的网络设置来使用正确的端口。
一般来说我们直接清空就好了。
git config --global --unset http.https://github.com.proxy
git config --global --unset https.https://github.com.proxy