简体   繁体   English

Git无法克隆存储库

[英]Git can't clone repository

I'm trying to connect to a repository but I always get this message when I try to connect 我正在尝试连接到存储库,但是当我尝试连接时总是会收到此消息

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 c1:90:ff:d5:6b:78:33:5d:7b:ba:f6:f6:bc:1c:de:79
Connection abandoned.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Try to manually connect to the host with ssh to confirm and store the ssh fingerprint. 尝试使用ssh手动连接到主机,以确认并存储ssh指纹。 On Windows it might help to use a tool for the checkout that can handle this for you. 在Windows上,使用一种可以为您处理此问题的结帐工具可能会有所帮助。 Eclipse for example can, as far as I know. 据我所知,例如可以使用Eclipse。

If ssh is not working for you try to clone using http/https. 如果ssh不适用于您,请尝试使用http / https进行克隆。

Another solution (depends on your git "server" github/bitbucket/stash etc) add your ssh key to the "server" and it will work. 另一种解决方案(取决于您的git“服务器” github / bitbucket / stash等)将您的ssh密钥添加到“服务器”,它将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM