Git,无法在Windows上克隆回购 [英] Git, Can't clone repo on windows

查看:114
本文介绍了Git,无法在Windows上克隆回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Windows上使用git来克隆远程存储库。我可以在我的Mac上克隆它,但在Windows上我遇到问题。



当使用git bash克隆时,我收到一条消息,指出服务器的主机密钥没有被缓存在注册表中。它要求我让y或n来信任主人。



问题是,如果我按y或n,什么也不会发生。它只是挂在那里。我应该使用OpenSSH而不是PuTTY吗?



谢谢

问题在于MSysGit在后台启动PLink,即终端实际上​​并未连接到PLink的输入。这意味着你只需不能在PLink中输入任何内容。



只需使用PLink或PuTTY连接到服务器,回答,从那时起,您不会再被问到。


I'm trying to use git on windows to clone a remote repository. I can clone it on my mac fine but on windows I get a problem.

WHen using git bash to clone, I get a message saying the server's host key is not cached in the registry. It asks me to preess y or n to trust the host.

THe problem is that if I press y or n nothing happens. It just hangs there. Should I use OpenSSH instead of PuTTY?

Thanks

解决方案

The problem is that MSysGit starts PLink in the background, i.e. the terminal is not actually connected to the input of PLink. That means that you simply can't type anything into PLink.

You simply have to connect to the server once using PLink or PuTTY, answer Yes and from then on, you won't be asked again.

这篇关于Git,无法在Windows上克隆回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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