user4226616
user4226616

Reputation:

Error "Failed to connect to github.com port 443"

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

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 repository and have already committed twice. I'm connected to the Internet through home Wi-Fi and the OS is Mac OS X v10.10.2 (Yosemite).

Upvotes: 13

Views: 73475

Answers (6)

Fernando F
Fernando F

Reputation: 143

If your GitHub project has a HTTPS URL like this:

https://github.com/<Username>/<Project>.git

You can try

git remote set-url origin [email protected]:<Username>/<Project>.git

That is what fixed it for me after checking that I did have the SSH key configured correctly.

Upvotes: 0

Abisinia
Abisinia

Reputation: 1

In my case, I solved it using this command:

git config --global http.proxy http[s]://usrGithub:passwordGithub@ipProxy:portProxy

using the GitHub login username and password and the IP address and port that I have on my proxy

Upvotes: 0

Soumyajit Chatterjee
Soumyajit Chatterjee

Reputation: 63

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

Also add the proxy setup in the gitconfig file.

Upvotes: 1

Dunken
Dunken

Reputation: 8681

If you are behind a proxy, check the content of C:\Users\[your username]\.gitconfig and make sure a proxy is configured:

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

Upvotes: 17

profimedica
profimedica

Reputation: 2830

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

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

Upvotes: 6

Striker007
Striker007

Reputation: 66

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

Upvotes: 5

Related Questions