git push origin master 失败

标签 git github

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

$ git remote add origin git@github.com: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. 

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

最佳答案

来自 this article :

  1. 打开腻子
  2. 在“主机名”框中,键入 github.com 然后点击打开
  3. 你会 收到提示服务器的主机 key 未缓存在注册表中。 点击然后关闭 Putty(不要 费心尝试登录
  4. Github 的 主机 key 现在将被缓存

关于git push origin master 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5560150/

相关文章:

Git post-receive hook 和环境变量

git - 提交代码时多久评论一次?

Git 不会添加任何文件——只是一个空目录

git - 跟踪分支历史

git - SSL_connect : SSL_ERROR_SYSCALL in connection to github. com:443

git - 在等待它们 merge 到上游时保持 Git 分支是最新的

github 服务器端 git 钩子(Hook)(即预提交和后提交)

github - 如何向 Travis 添加新的 GitHub 组织?

git - 如何修复 Git 中的 'packet_write_wait: Connection to ... Broken pipe' 错误

macos - 如何使用 github actions 在 OS X 和 Windows 上编译二进制文件?