2016-10-12 24 views
0

我有使用无法克隆现有Gitlab回购

git clone [email protected]:USERNAME/projectname.git 

gitlab我正努力在本地克隆(Windows 7)中的一个项目,但我看到这个错误:

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://[email protected]/USERNAME/projectname.git/ `: SSL certificate problem: unable to get the local issuer certificate

我敢肯定,我已经使用SSH而不是HTTPS在过去这方面的工作,所以不知道如果这是正确的路线。


我添加了一个SSH关键项目和我的本地机器,不知道从哪里何去何从 - 感谢任何帮助或指导!

回答

1

这不起作用,因为%USERPROFILE%被设置为某个不是C:\users\user.name\的其他目录。

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

当执行ssh-keygen时,我传递%USERPROFILE%作为路径,不知道值已经改变。

+0

你能再详述一下吗?什么是“USERPROFILE” – Nil

+0

'%USERPROFILE%'是当前用户配置文件的路径。如果你输入那个(包括百分号)到windows exporer url栏,它应该带你到文件夹。请参阅https://superuser.com/questions/571974/userprofile-variable-not-working – Bassie