10

Can anyone spot what I could possibly be doing wrong? You can browser zoom in to see image details.

This is a fresh account, new project, owner of group and I am simply unable to push (HTTPS) following instructions provided.

Unable to push - repository not found

7
  • Please use text instead of images, it is easier to read and search. Commented Nov 8, 2014 at 21:27
  • Do the following work: SSH push, web edit, HTTPS to non-empty repo? Is your username stg and stgps is a group? Does push to your own repos work? Commented Nov 8, 2014 at 21:32
  • Have you created a commit on the master branch? stackoverflow.com/questions/827351/… Commented Nov 8, 2014 at 21:33
  • Yes @CiroSantilli, I have followed the push existing and create repository instructions; neither worked. Commented Nov 11, 2014 at 15:34
  • 1
    @ChefCyanide sorry I have not found a solution. I believe my issue was due to software quality so I have abondened GitLab as a repo provider - but maybe things have changed now. Commented Feb 20, 2017 at 19:01

5 Answers 5

11

When adding the remote URL to the initial configuration, instead of using the URL that Gitlab gives you, try adding the following URL instead and replace the details below as mentioned, to reflect your info & your project info:

REMOTE URL FORMAT:

https://YOUR_USER_NAME:[email protected]/YOUR_USER_NAME/YOUR_PROJECT_NAME.git/

REPLACEMENTS IN THE ABOVE URL:

YOUR_USER_NAME - Replace this with your gitlab username
PASSWORD - Replace this with your gitlab password
YOUR_PROJECT_NAME - Replace this with your gitlab project name (whatever is generated for you)
3
  • 2
    I recommend not putting your GitLab password in plain-text on disk. It's vulnerable to being stolen that way. Commented Sep 4, 2019 at 13:55
  • @NathanAldenSr I totally agree with you. But unfortunately, I could not find any other way to make it work without using the solution that I proposed. And as you know, being able to push changes to repo is one of the high priority items. If you do know of any other solution that achieves the objectives without having to hardcode the password, please share.
    – Devner
    Commented Sep 4, 2019 at 14:45
  • thanks man, really grateful Commented Feb 21, 2022 at 11:13
9

I create a small site to fix really quick this issue. gitlab fix remote

image of the web site

2
  • Thanks this works, by why? Is it because they changed the git credential manager on windows (to Git-Credential-Manager-Core) and it is that thing is doing something wrong? Commented Jan 10, 2021 at 15:41
  • Ah - I know. It is because i have two gitlab accounts, one for work, one personal. GCM-core uses my work login for gitlab.com. There is a setting inside GCM-core usehttppath which, if I turned on, would mean that GCM-core will use the whole path to decide which credentials to use. But this is easier, thanks! Commented Jan 10, 2021 at 15:44
5

While Adding Your URL make sure you add your username like this

https://[email protected]/path_of_repository.git

and also .git at the end is not to be missed

0

try to /profile/keys and add new key of server in GitLab

In your GitLab got to: /help/ssh/README

SSH keys An SSH key allows you to establish a secure connection between your computer and GitLab.

0

In my case for HTTPS-URL, it was not working

So I tried using it with SSH

First open command prompt in administrator mode then enter the following command to generate SSH key:

ssh-keygen -t rsa -b 4096 -C “<my key name>”

Then go to the location where this key is saved 'In my case (C:\Users\your_username\.ssh)' and open id_rsa.pub and copy its content.

Then go to GitLab create a new SSH key and add this copied content to your SSH key.

After that try cloning using SSH-URL

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.