Remote: The Project You Were Looking For Could Not Be Found

  • 09-09-2022
  • 5013
  • Gitlab
  • Haresh Chauhan

Remote: The Project You Were Looking For Could Not Be Found or you don't have permission to view it. If you also facing this error in git when you try to pull or clone the project from the git repository.

Fatal: repository 'https://gitlab.com/test.dev/project1.git/' not found if you facing this error also when you try to pull or clone the project from the git repository.

So in this case you just need to add your git repo username as well as your git owner repo username.

You are trying:
https://gitlab.com/gitlab_user/myrepo.git
You need to try now:

gitlabusername : Your git username

gitlab_user : Would be project owner git username

https://{gitlabusername}@gitlab.com/{gitlab_user}/myrepo.git

Problem With different causes

If your problem comes when you cloning a new project from the git, in this case, add a command with a URL like a git clone and then below the given URL. in this URL first you need to put your git username and then git owner who invites you give username.

https://{gitlabusername}@gitlab.com/{gitlab_user}/myrepo.git

If your problem is while pulling changes from the git repo. You can update the remote URL into your .git repo. In this case, you need to put your git username and then your git owner username.

git remote set-url origin https://{Your_username}@gitlab.com/{git_owner_username}/myrepo.git

If your git repo creates by you and owned by you. in this case, for both usernames, you need to put yours below the given example.

git remote set-url origin https://{Your_username}@gitlab.com/{Your_username}/myrepo.git

We always thanks to you for reading our blogs.


dharmesh-image

Dharmesh Chauhan

(Swapinfoway Founder)

Hello Sir, We are brothers origin from Gujarat India, Fullstack developers working together since 2016. We have lots of skills in web development in different technologies here I mention PHP, Laravel, Javascript, Vuejs, Ajax, API, Payment Gateway Integration, Database, HTML5, CSS3, and Server Administration. So you need our service Please Contact Us

haresh-image

Haresh Chauhan

(Co-Founder)


We Are Also Recommending You :