Cannot clone git repo via https on gitlab Authentication failed

I created a test project on gitlab but when I try to clone the repo I get this error.

Cloning into 'testperm'...
fatal: Authentication failed for 'https://gitlab.com/MYUSER/testperm.git/'

However if i change the permission on the repo to (Visibility Level) Public I can clone.
To test my user and password ,I copied the repo https url and pasted in my browser and logged in successfully.

1 Like

Hello,
same problem here. I cannot clone a repo via https with my gitlab credentials.

oops it’s a 1 year old post -_-

When cloning over HTTP(S) you need to specify the authtification credentials in the URL:

1 Like

Works like a charm !