Reputation: 1072
I'm trying to clone my gitlab repository.
Here i provided project-name as repo name and username as my user name.
Command I tried:
$git clone <copied gitlab repo of https>
When i try to do that i got the below error.
Cloning into 'project-name'... remote: The project you were looking for could not be found. fatal: repository 'https://gitlab.com/username/project-name.git/' not found
help me someone how to get rid of it.
Upvotes: 7
Views: 20855
Reputation: 14892
In windows go to Credential Manager and remove :
git:https://gitlab.com
Now, try to clone the project again
Upvotes: 0
Reputation: 4945
I solved this by simply adding username to url like below,
before: https://gitlab.com/gitlab_user/myrepo.git
after: https://gitlabusername@gitlab.com/gitlab_user/myrepo.git
Upvotes: 5
Reputation: 1775
If someone for some reason finds this now, what helped me in the end was adding my username in front of the gitlab instance url.
git clone https://username@gitlab.com/username/project-name.git
Apparently it's a bug in gitlab.
Upvotes: 17
Reputation: 2258
You have trailing slash (/) at the end of your url.
Use git clone https://gitlab.com/username/project-name.git
instead.
Upvotes: 0