search

Home  >  Q&A  >  body text

Git cannot push the contents of the remote repository?

I have already performed remote operation to the remote warehouse. There is nothing in github yet. I want to upload the code from the local warehouse and have done the add and commit operations, but when I perform the $ git push origin master
operation, I get the error fatal: unable to access 'http://github.com/TodayWasAFairTale/test...': Recv failure: Connection was reset

. What's going on?

仅有的幸福仅有的幸福2813 days ago724

reply all(4)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:32:58

    If you want to push a private library, you need to bring your username with you. In time, the private library will give you development permissions. If it is your own library, then the reason may be as mentioned above.

    reply
    0
  • 黄舟

    黄舟2017-05-02 09:32:58

    Check if it is an agent problem stackoverflow

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:32:58

    haox

    It seems like GitHub now uses https instead of HTTP

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:32:58

    Confirm whether it has been added ssh key to github

    Try it git push -u origin master

    reply
    0
  • Cancelreply