git 克隆失败无法访问“https://.....”无法连接到 github:443 没有错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27283229/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Clone failed unable to access "https://....." failed connect to github:443 no error
提问by LattaliAhmed
I am using Android project and I'm sick of this error:
我正在使用 Android 项目,但我厌倦了这个错误:
fatal: unable to access 'https://github.com/caddy2519/MyBabyGrowing.git/': Failed connect to github.com:443; No error
fatal: unable to access 'https://github.com/caddy2519/MyBabyGrowing.git/': Failed connect to github.com:443; No error
How do I fix this?
我该如何解决?
I don't use proxy server.
我不使用代理服务器。
回答by yasc
Check if your network is protected, if so, you can configure proxy for git provided in that answer, as follows:
检查您的网络是否受到保护,如果是,您可以为该答案中提供的 git 配置代理,如下所示:
git config --global http.proxy http://proxyuser:[email protected]:8080
- change proxyuser to your proxy user
- change proxypwd to your proxy password
- change proxy.server.com to the URL of your proxy server
- change 8080 to the proxy port configured on your proxy server
- 将 proxyuser 更改为您的代理用户
- 将 proxypwd 更改为您的代理密码
- 将 proxy.server.com 更改为您的代理服务器的 URL
- 将 8080 更改为您的代理服务器上配置的代理端口
Otherwise, you should consider a fresh install of git.
否则,您应该考虑全新安装 git。
回答by yasc
Remove Slash after .git(/)
删除 .git(/) 后的斜线
Change it to
将其更改为