Bassie Bassie - 1 year ago 316
Git Question

Unable to Clone Existing Gitlab Repo

I have a project on gitlab which I am trying to clone locally (Windows 7) using

git clone

But I see this error:

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.

I know that the repo definitely exists as I can see it under my GitLab account.

I also tried the solution posted here, but I get this error:

fatal: unable to access '`: SSL certificate problem: unable to get the local issuer certificate

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.

I have added a
key to the project and my local machine, and have no idea where to go from here - appreciate any help or guidance!

Answer Source

This was not working because %USERPROFILE% was set to some other directory which was not C:\users\\.

I was grabbing the ssh key from C:\users\\, but this key was actually related to another project and server altogether.

When executing ssh-keygen, I was passing in %USERPROFILE% as the path, not knowing that the value had changed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download