最佳答案
我试图把变化从我的本地回购推到远程回购。当我输入:
git push origin
我得到以下错误:
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 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
Connection abandoned.
fatal: The remote end hung up unexpectedly
我怎样才能解决这个问题呢? 我在 Windows7的命令行中使用 git。
Edit
当我尝试做一个简单的 ssh 时
ssh user@hostname
我得到以下错误:
Could not create directory '/c//%HOMEDRIVE%%HOMEPATH%/.ssh'.
percent_expand: unknown key %H
它不会创建目录,因为路径是无效的。如何解决这个问题?
@ eckes: Edit2
我的家被设置为 %HOMEDRIVE%%HOMEPATH%
是正确的吗?