Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to connect to github.com port 443: Operation timed out

Tags:

git

github

git clone https://github.com/RubyLouvre/avalon
Cloning into 'avalon'...
fatal: unable to access 'https://github.com/RubyLouvre/avalon/': Failed to connect to github.com port 443: Operation timed out

I can not use HTTPS to clone any repo, but I can clone them by SSH.

git clone [email protected]:RubyLouvre/avalon.git
Cloning into 'avalon'...
remote: Counting objects: 33102, done.
remote: Compressing objects: 100% (44/44), done.

What is the problem with this? I even set proxy, but it is still not working. I try much of network environment, but it makes no sense.

like image 387
HsuChihYung Avatar asked Jul 29 '16 16:07

HsuChihYung


1 Answers

If you are using proxy for network connection, then you will have to add proxy to git config file. Use the below command to add proxy.

git config --global http.proxy http[s]://username:password@proxyipaddress:portnumber
like image 112
Anand Soni Avatar answered Nov 10 '22 08:11

Anand Soni