克隆失败,无法访问"https://.....",连接到github失败:443没有错误。

9

我正在使用Android项目,但是遇到这个错误很困扰:

fatal: unable to access 'https://github.com/caddy2519/MyBabyGrowing.git/': Failed connect to github.com:443; No error

该如何解决呢?

我没有使用代理服务器。


你能从浏览器访问 https://github.com 吗? - Stefano Sanfilippo
是的.................................. - LattaliAhmed
1
哇,这个问题还没有答案。 - Shyam Bhimani
请检查443端口是否可访问。在Git Bash中运行命令:$ curl https://github.com:443。在Windows CMD中运行命令:$ telnet github.com 443。 - Vitalliuss
显示剩余2条评论
2个回答

1

检查你的网络是否受到保护,如果是,你可以按照以下步骤为git配置代理,具体操作请参考answer

git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
  • 将proxyuser更改为您的代理用户
  • 将proxypwd更改为您的代理密码
  • 将proxy.server.com更改为您的代理服务器的URL
  • 将8080更改为在您的代理服务器上配置的代理端口

否则,您应该考虑重新安装git。



网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接