How to fix 'The project you were looking for could not be found' when using git clone

tijnster picture tijnster · Feb 7, 2019 · Viewed 43.7k times · Source

I am trying to clone a project from gitlab to my local machine. I have been granted rights as a developer, and use the command 'git clone

  • None of the protocols work (ssh and https neither work)

The error message I am getting:

remote: The project you were looking for could not be found. fatal: repository 'https://gitlab.com/KZA_Connected/skilltree.git/' not found

Any help would be highly appreciated.

Answer

Abdul Karim Khan picture Abdul Karim Khan · Nov 27, 2019

I solved this by simply adding username to url like below,

before: https://gitlab.com/gitlab_user/myrepo.git

after: https://[email protected]/gitlab_user/myrepo.git