Setting up repo on GitHub - Error on push -u origin master

后端 未结 1 1455
失恋的感觉
失恋的感觉 2021-01-07 06:19

I\'m trying to set up my first Git Repository on GitHub. I\'ve been following the documentation on GitHub\'s website here. I get everything right up until the very last comm

1条回答
  •  孤城傲影
    2021-01-07 06:50

    The error message tells you that you cannot connect properly.

    Try logging into GitHub with the following command:

    $ ssh -T git@github.com
    

    Maybe you have forgotten to make your SSH key known using ssh-add path/to/key?

    To do so, use the following code (which avoids the "Could not open a connection to your authentication agent." problem):

    $ exec ssh-agent bash
    bash$ ssh-add /path/to/key
    

    See the GitHub docs over at http://help.github.com/ssh-issues/ to resolve the SSH issues.

    On Windows, use openssh as "GitHub only provides support for openssh.", it is available here: http://sshwindows.sourceforge.net/

    0 讨论(0)
提交回复
热议问题