search

Home  >  Q&A  >  body text

Unable to connect to github

I can use a browser to log in to github, but something goes wrong when I want to push some of my code. I can't push it, and the prompt is a timeout.

Then I tried ssh and ping and both timed out.

I used to use it normally, but suddenly something went wrong today and I don’t know how to solve it.

習慣沉默習慣沉默2792 days ago526

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-05-02 09:41:26

    Network problem, or you set up a proxy but the terminal does not use the proxy.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:41:26

    ChangeDNS
    I didn’t notice that the browser can access it.

    reply
    0
  • 高洛峰

    高洛峰2017-05-02 09:41:26

    I also encountered the same problem and even turning off the agent didn’t work

    Update: Mine is fixed. It’s a problem with the host file. The github address in my host file is relatively old. Delete it and it’s OK

    reply
    0
  • Cancelreply