2011-04-06 250 views
4

我想将现有的文件夹上传到gitHub中。 以下说明我输入窗口如下:git push origin master failed

$ git remote add origin [email protected]:myname/myproject.git 

然后

$ git push origin master 

我碰到下面的错误。

 
The server's host key is not cached in the registery. you have no guarantee that the server is the computer you think it is. 
THe server;s rsa2 key fingerprint is: 
blah blah blah blah 
Connection abandoned. 
Fatal : the remote end hung up unexpectedly. 

这个错误是什么意思,我该如何解决它?

+0

没有人可以用这个过于简单的问题有所帮助。我猜你可能会在Windows,但我不知道 – bmargulies 2011-04-06 00:26:04

+0

如果你粘贴确切的错误而不是总结,你会得到更好的答案,甚至更好的是,包括你的操作系统,你做什么来设置你的环境,以及任何东西这可能会有助于你诊断 – Wesley 2011-04-06 00:33:16

+0

好的...我已经添加了更多的细节,认为这将是一个普遍的问题,任何一个新的github – Codier 2011-04-06 00:33:50

回答

7

this article

  1. 打开腻子
  2. 在Hostname框中,键入 github.com并单击打开
  3. 你会 收到提示服务器的主机 密钥未缓存在注册表中。 点击然后关闭腻子(不 懒得尝试登录
  4. GitHub的 主机密钥现在将被缓存
相关问题