git 无法连接到 github 443

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29333319/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:03:10  来源:igfitidea点击:

Failed to connect to github 443

gitpush

提问by Dunken

I tried to push some changes to github using git push origin master, but after some time it showed an error

我尝试使用 将一些更改推送到 github git push origin master,但一段时间后显示错误

fatal: unable to access 'https://github.com/the-unbelievable/MiniGames.git/': Failed to connect to github.com port 443: Operation timed out

I've just created that repo and already committed twice. I'm connected to the Internet through home WiFi and OS in Mac OS X Yosemite 10.10.2.

我刚刚创建了那个 repo 并且已经提交了两次。我通过 Mac OS X Yosemite 10.10.2 中的家庭 WiFi 和操作系统连接到互联网。

采纳答案by Striker007

The reason is continuous DDoS attack ... https://status.github.com/messages

原因是持续的DDoS攻击... https://status.github.com/messages

回答by Dunken

Are you behind a proxy? Check content of C:\Users\[your username]\.gitconfigand make sure proxy is configured:

你在代理后面吗?检查内容C:\Users\[your username]\.gitconfig并确保配置了代理:

[http]  
    proxy = http://yourproxy.com:8080  //change your settings here
[https] 
    proxy = http://yourproxy.com:8080  //change your settings here

回答by profimedica

From here: GitHub - failed to connect to github 443 windows/ Failed to connect to gitHub - No Error

从这里: GitHub - 无法连接到 github 443 windows/无法连接到 gitHub - 没有错误

git config --global http.proxy http[s]://userName:password@proxyaddress:port

Where port might be 3128 and userName:password might be your windows login credentials

其中 port 可能是 3128 并且 userName:password 可能是您的 Windows 登录凭据

回答by Soumyajit Chatterjee

Try to configure the environment by using:

尝试使用以下方法配置环境:

sudo vim.tiny /etc/environment

Add there:

在那里添加:

http_proxy=http://your.proxy.server.address:port
https_proxy=http://your.proxy.server.address:port
ftp_proxy=http://your.proxy.server.address:port

Add proxy setup in the gitconfig file also.

也在 gitconfig 文件中添加代理设置。