我正在尝试将项目(Calico)推送到 GitHub,但遇到了错误。我已经通过 ssh 连接成功登录,并收到了通常的响应:
Ryan@RYANLAPTOP-PC /C/inetpub/wwwroot/Calico (master)
$ ssh git@github.com
Enter passphrase for key '/c/Users/Ryan/.ssh/id_rsa':
Hi rossryan! You've successfully authenticated, but GitHub does not provide shel
l access.
Connection to github.com closed.
但是,当我尝试推送代码时仍然收到错误消息:
Ryan@RYANLAPTOP-PC /C/inetpub/wwwroot/Calico (master)
$ git push -u github master
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
Connection abandoned.
fatal: The remote end hung up unexpectedly
我相信我已经相当忠实地遵循了网站上的说明,在正确的区域用 'GitHub' 代替了 'origin'(origin 显然已经定义,所以我使用了不同的名称)。我已经通过电子邮件向 GitHub 发送了有关此问题的信息,但没有收到任何回复。
有没有人有任何其他想法?
编辑:
git remote -v 的输出:
Ryan@RYANLAPTOP-PC /C/inetpub/wwwroot/Calico (master)
$ git remote -v
github git@github.com:rossryan/Calico.git (fetch)
github git@github.com:rossryan/Calico.git (push)
origin C:/inetpub/wwwroot/Calico/ (fetch)
origin C:/inetpub/wwwroot/Calico/ (push)