git push origin master失败 [英] git push origin master fails

查看:177
本文介绍了git push origin master失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试将现有的文件夹上传到gitHub中。
按照说明,我在windows中输入以下内容:

$ $ $ $ git remote add origin git@github.com myname / myproject.git

然后

  $ git push origin master 

我得到以下错误。 p>

 
服务器的主机密钥未缓存在注册表中。你不能保证服务器是你认为的电脑。
服务器; rsa2密钥指纹是:
等等等等等等等
连接被放弃。
致命:远端意外挂断。

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

解决方案

From 本文


  1. 打开putty

  2. 键入
    github.com 并点击打开

  3. 您将
    收到提示服务器的主机
    密钥未缓存在注册表中

    点击,然后关闭Putty(不要
    麻烦尝试登录)
  4. Github的
    主机密钥现在将成为缓存


I am trying to upload an existing folder into gitHub. Following instructions I typed the following in windows:

$ git remote add origin git@github.com:myname/myproject.git

and then

$ git push origin master

I get the following error.

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. 

What does this error mean and how do I resolve it?

解决方案

From this article:

  1. Open putty
  2. In the Hostname box, type github.com and click Open
  3. You’ll receive a prompt The server’s host key is not cached in the registry. Click Yes then close Putty (don’t bother trying to log in
  4. Github’s host key will now be cached

这篇关于git push origin master失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆