微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

idea异常: 无法连接github, push 代码报错 Push failed

在idea 中, push 代码到github 时, 报错无法连接github.com:443. 经过排查, 笔者发现原来时因为笔者所处的网络在捣鬼。由于笔者所处网络存在网络代理, 而git命令无法使用系统全局代理, 所以为git 单独设置网络代理即可。

异常信息:

Push Failed: Failed with error: unable to access 'https://github.com/xxx.git/': 
Failed to connect to github.com port 443: Connection timed out

解决方案:

# 命令行执行设置git 全局代理命令即可
git config --global https.proxy http://xxx.xxx.xxx:8080
git config --global http.proxy http://xxx.xxx.xxx:8080
git config --global socks5.proxy http://xxx.xxx.xxx:8080

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐