楼主使用git clone项目时,报错unable to connect to github.com:github.com[0: 20.205.243.166]: errno=Unknow,并且从本地仓库向远程仓库push项目时,出现同样的错误。
楼主翻阅了很多博客,问题仍未解决。
解决方法:
第一步:终端输入git config --global -l(查看全局配置)
http.sslverify=false
显示git邮箱、用户名及配置
第二步:依次输入(可能配置不同,根据个人配置更改标记内容)
git config --global --unset url.https://.insteadof
git config --global --unset url.https://github.com/.insteadof
git config --global --unset url.git://.insteadof
此时再输入git config --global -l 查看配置,只剩下git邮箱、用户名、http.sslverify=false等信息。
此时,在使用push/clone命令,问题得到解决。