[英]Unable to Clone Existing Gitlab Repo
I have a project on gitlab which I am trying to clone locally (Windows 7) using 我在gitlab上有一个项目,我正在尝试使用以下方法在本地克隆(Windows 7)
git clone git@gitlab.com:USERNAME/projectname.git
But I see this error: 但是我看到这个错误:
Cloning into 'foldername'... 克隆为“文件夹名称” ...
GitLab: The project you were looking for could not be found. GitLab:找不到您要查找的项目。
fatal: Could not read from remote repository. 致命:无法从远程存储库读取。
Please make sure you have the correct access rights and the repository exists. 请确保您具有正确的访问权限,并且存储库存在。
I know that the repo definitely exists as I can see it under my GitLab account. 我知道该仓库肯定存在,因为我可以在我的GitLab帐户下看到它。
I also tried the solution posted here , but I get this error: 我也尝试过这里发布的解决方案,但出现此错误:
fatal: unable to access ' https://USERNAME@gitlab.com/USERNAME/projectname.git/ `: SSL certificate problem: unable to get the local issuer certificate 致命:无法访问' https://USERNAME@gitlab.com/USERNAME/projectname.git/ `:SSL证书问题:无法获取本地发行者证书
I'm pretty sure I have had this working in the past using SSH rather than HTTPS, so not sure if this is the right route to go down. 我很确定我过去曾经使用SSH而不是HTTPS来完成此工作,所以不确定这是否是正确的选择。
I have added a SSH
key to the project and my local machine, and have no idea where to go from here - appreciate any help or guidance! 我已经在项目和本地计算机上添加了SSH
密钥,并且不知道从何处去-感谢任何帮助或指导!
This was not working because %USERPROFILE%
was set to some other directory which was not C:\\users\\user.name\\
. 由于%USERPROFILE%
设置为不是C:\\users\\user.name\\
其他目录,因此无法正常工作。
I was grabbing the ssh
key from C:\\users\\user.name\\
, but this key was actually related to another project and server altogether. 我从C:\\users\\user.name\\
抓取ssh
密钥,但该密钥实际上与另一个项目和服务器有关。
When executing ssh-keygen
, I was passing in %USERPROFILE%
as the path, not knowing that the value had changed. 在执行ssh-keygen
,我传入%USERPROFILE%
作为路径,但不知道该值已更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.