今推一个代码到新建的仓库去 一直提示连接超时,
$ git push origin master fatal: unable to access 'https://github.com/dengxiaoning/kedaloProjDev.git/': 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 项目单独设置代理
也尝试这样

但是无济于事
2、删除 proxy 配置
于是我直接 搜索 .gitconfig将其proxy 手动删除

试过任然不ok
在快要放弃的时候,我使用浏览器登录 https://github.com/ 出现了如下页面

看到这个是否已经找到了问题所在
于是到window 中找到了host 打开编辑

发现最后配置了一段github的 proxy 地址----其实这个是当初处理 git pull失败是做的github代理配置,具体见remote: HTTP Basic:Access denied fatal:Authentication failed for没想到为自己埋下了一个坑,哎
废话不多说,直接将代理的配置删除掉再次尝试

执行push 弹出输入密码的对话框,输出正确就 ,push执行成功

特此记录。