Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 667
tijnster Avatar asked Feb 07 '19 10:02

tijnster


2 Answers

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

like image 74
Abdul Karim Khan Avatar answered Sep 20 '22 08:09

Abdul Karim Khan


Today, I was having the same issue. The repo was working fine at my home machine, but when I tried the same repo in other machine I started facing the same error. I was using below URL

https://gitlab.com/{gitlab_user}/project_repo.git 

And now I changed above URL to below

https://{gitlab_user}@gitlab.com/gitlab_user/project_repo.git 

And it worked for me. Above solution was found at below URL

https://medium.com/@imstudio/gitlab-the-project-you-were-looking-for-could-not-be-found-issue-685944aa5485 

Hope this helps other.

like image 32
Abdul Waheed Avatar answered Sep 19 '22 08:09

Abdul Waheed