Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git, Can't clone repo on windows

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

like image 691
Chris Avatar asked Jun 23 '09 22:06

Chris


People also ask

Why can't I clone my repository?

If you see this error when cloning a repository, it means that the repository does not exist or you do not have permission to access it.

Why is my Git clone not working?

Make sure that the path in the git clone call is correct. If you have an authorization error, have an administrator check the ACLs in Administration > Repositories > <repoName> > Access. Have an administrator check the bare repo in the GitCentric storage directory.


1 Answers

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.

like image 95
Jörg W Mittag Avatar answered Sep 25 '22 16:09

Jörg W Mittag