参考文章github push过程中的timeout问题 | 码农家园
1,打开C:\Windows\System32\drivers\etc 下的hosts文件
2,
访问github.global. Server Report: Analysis of Speed, Location, and DNS Records
记录IP Address x.x.x.x
在hosts文件末尾添加
x.x.x.x github.global.
3,
http://github./#ipinfo(注意:这个网站国内ip下打不开,翻墙将ip设置海外才能打开)
记录IP Address x.x.x.x
在hosts文件末尾添加
x.x.x.x
保存hosts文件
终端输入:
ipconfig /flushdns
测试连接github:
ping
这时候提交github就不会出现网络问题。
注意:
1,ip需要实时更新的
2,如果要打开github网站,要将以上设置屏蔽掉,不然打不开,可能是因为我浏览器也安装了github加速插件,两者冲突了
更新:
Execute the git command: release ssl verification:
git config --global http.sslVerify "false"
/Kong/insomnia/issues/2251
如果觉得《网络问题导致的github提交失败解决方案》对你有帮助,请点赞、收藏,并留下你的观点哦!