Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I clone from GitLab?

Tags:

git

clone

gitlab

When I try to clone a project from GitLab it says "Failed to authenticate". I typed my username and password correctly(I've tried it few times), configured my SSH key. I've tried my access token instead of my password and still unable to clone. I'm using HTTPS clone

like image 689
Caser Avatar asked Aug 08 '26 07:08

Caser


1 Answers

If you have configure your SSH key, make sure:

  • said ssh key does authenticate your properly: ssh -Tv [email protected]

  • to use an SSH URL when cloning your GitLab repository

    git clone [email protected]:me/myRepo
    

configured my SSH key. I'm using HTTPS clone

Then the SSH key does not matter.

Check your git config --global credential.helper: if set, it might have cached the wrong credentials.

like image 161
VonC Avatar answered Aug 10 '26 08:08

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!