问题说明
今推一个代码到新建的仓库去 一直提示连接超时,Failed to connect to github.com port 443: Timed out。
于是得开始找方法解决问题了
1、 配置git proxy
如这样
git config --global http.proxy 127.0.0.1:1080为全局的 git 项目都设置代理
git config --local http.proxy 127.0.0.1:1080 为某个 git 项目单独设置代理
也尝试这样
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/fe516cbf4a7bfc866126772afe77fcee.png)
git config --local http.proxy 在需要push的文件运行,就成功的push了。