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

1

I'm trying to do a git push, or git pull, and half and aft it throws this error:

fatal: unable to access 'https://github.com/tiagoferezin/meuRepositorio.git/': Failed to connect to github.com port 443: Connection timed out

What can be happening?

I have already looked at various forums and none came up with a solution.

Is there a tutorial or step-by-step to follow to correct such an error?

    
asked by anonymous 02.06.2016 / 19:33

1 answer

2

There was a guy who had the same problem and then managed to solve it. He reported on the a> English version. I'll post the answer here in a free translation:

Well, we've done the following steps:

  • We tried Google on the error

  • We have reached the SO Links ( this and this ) that have suggested the same thing, which I have to update the settings of proxy of Git .

  • Damn, I can not see information from proxy of the control panel. IT "faces" must have hidden. I can not even change the settings to not use proxy .

  • I found this magnificent tutorial which shows what proxy you are connected to.

  • I have updated the http.proxy key in the Git settings with the following command:

  •   

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

  • Error - could not resolve proxy some@proxyaddress:port . I noticed that my password had the @ symbol.

  • Code @ in your password (if any) to %40 , because Git separates the setting from proxy to @.

  •   

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

    It worked!

    Note - I just wanted to answer this question for "souls" with me, who looked for answers here in SO : D

    I hope I have helped \ o /

    PS: This is the original question / answer link

        
    02.06.2016 / 20:32