git - 无法克隆现有的 Gitlab 存储库

标签 git ssl ssh gitlab

我在 gitlab 上有一个项目,我正在尝试使用

在本地(Windows 7)克隆
git clone git@gitlab.com:USERNAME/projectname.git

但是我看到这个错误:

Cloning into 'foldername'...

GitLab: The project you were looking for could not be found.

fatal: Could not read from remote repository.

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

我知道该存储库肯定存在,因为我可以在我的 GitLab 帐户下看到它。


我还尝试了 here 上发布的解决方案,但我收到此错误:

fatal: unable to access 'https://USERNAME@gitlab.com/USERNAME/projectname.git/`: SSL certificate problem: unable to get the local issuer certificate

我很确定我过去曾使用 SSH 而不是 HTTPS 来完成这项工作,所以不确定这是否是正确的路径。


我已经为项目和我的本地计算机添加了一个 SSH key ,但不知道从这里去哪里 - 感谢任何帮助或指导!

最佳答案

这是行不通的,因为 %USERPROFILE% 被设置为不是 C:\users\user.name\ 的其他目录。

我从 C:\users\user.name\ 获取了 ssh key ,但这个 key 实际上与另一个项目和服务器完全相关。

在执行 ssh-keygen 时,我将 %USERPROFILE% 作为路径传入,但不知道该值已更改。

关于git - 无法克隆现有的 Gitlab 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39997807/

相关文章:

ios - 我在对私有(private) gitlab pod/项目容器执行 "No podspec found"时收到一条 "pod install"消息

git - 当 git 存储库有多个远程仓库时,如何保护提交者的身份?

git - 在不同的项目中重用 Jenkinsfile

android - 我的应用程序不适用于 android < 5 中的自签名 SSL

ssl - Google 网络字体和 SSL 错误

ssl - 如何在没有子域的域上启用 SSL?

linux - ~/.ssh/config 文件中的 SSH 端口转发?

eclipse - Egit 已安装但未显示

GIT 没有这样的身份 : id_rsa: No such file or directory

git - SmartGIT 不要求 ssh key