Based on the URL I am guessing that you are using a self-hosted Gitlab environment? Did you get the URL from the project page in Gitlab? From what I can see from the Gitlab doc, if you get it from the /username namespace the URL is not correct, since that namespace only shows which repositories you have access to even if you are not logged on to Gitlab.
We are self hosted gitlab in our environment, iam gettting the url in git page, previously once the project was created in gitlab application it is reflecting in gitlab server but now projects is not reflecting in server
when i am cloning the existing project url getting
fatal: repository 'http://gitlab.tvstyres.in/C816/demo-project.git/' not found
for new project also facing same issuefatal: repository 'http://gitlab.tvstyres.in/C816/testing.git/' not found
in gitlab server demo-project is reflecting but newly created testing project is not reflecting in server
Okay, so either the username or password is wrong. Make sure you are using the ones that are defined on your Gitlab server. Another option would be to use SSH instead, that way you do not have to worry about username and passwords, as long as it has been configured correctly in Gitlab.
If i use ssh i got this below error
[root@GitLab ~]# git clone ssh://firstname.lastname@example.org:C816/testing.git
Cloning into 'testing'...
ssh: Could not resolve hostname gitlab.tvstyres.in:c816: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The ssh error seems to be an issue on the Gitlab server side, see https://gitlab.com/gitlab-org/gitlab-recipes/issues/46.
Another thing you could try is to also add your password to the http URL like this:
git clone http://your_username:email@example.com/C816/demo-project.git
If the testing project is not showing up in Gitlab, my guess is that it is either private or it never got registered correctly on the server. I do not have access to Gitlab, I'm using Bitbucket, so not sure what needs to be done in Gitlab to set one up.
[root@GitLab ~]# git clone http://Hareeshkumar:Darling@firstname.lastname@example.org/C816/testing.git
Cloning into 'testing'...
fatal: unable to access 'http://Hareeshkumar:Darling@email@example.com/C816/testing.git/': Could not resolve host: firstname.lastname@example.org; Unknown error
COMMUNITY SHOWCASE – FUN MAN ANDY “Showcases spotlight Atlassian Leaders who make a big impact on our Community. The Atlassian Community Team taps Leaders to share more about themselves and their A...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events