但是在开发机器上成功克隆

但是在开发机器上成功克隆

本文介绍了无法在笔记本电脑上克隆git存储库,但是在开发机器上成功克隆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows Server 2008计算机上成功安装了git并设置了ssh.

I have successfully installed git on a windows server 2008 machine and set up ssh.

我已经成功地在开发人员计算机(Windows 7)上克隆了一个存储库,但是当我尝试在笔记本电脑(Windows 7)上克隆该存储库时,它给了我错误:

I have successfully cloned a repository on my developer machine (windows 7), but when I tried to clone it on my laptop (windows 7), it is giving me the error:

unable to open connection. Host does not exist

我可以用腻子成功连接到它,还可以设置环境变量.我无法确定我所缺少的.请帮忙.预先感谢.

I can connect to it with putty successfully, and also set the environment variable. I cannot identify what I am missing. Please help. Thanks in advance.

推荐答案

实际上,当我尝试克隆时,它还在警报框中显示错误

Actually when I tried to clone it was also giving the error in alert box that

The server's host key is not cached in the registry

带有选项yes或no的选择,然后我选择Yes,它给了我错误

with option yes or no then I selected Yes then it gave me the error

unable to open connection. Host does not exist

因此解决方案是将主机密钥保存在注册表中

So the solution is saving the host key in registry

打开cmd并转到plink的路径(我的位置是C:\ Program Files(x86)\ GitExtensions \ PuTTY)并输入plink [email protected]

Open up cmd and go to path of plink (mine was C:\Program Files (x86)\GitExtensions\PuTTY)and type plink [email protected]

这将提示您将主机密钥保存在注册表中,然后输入yes,然后再次尝试使用git命令,它应该可以正常工作.

This will prompt you to save the host key in registry , and enter yes, then try your git command again, and it should be working.

这篇关于无法在笔记本电脑上克隆git存储库,但是在开发机器上成功克隆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 03:32