我在 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/