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.
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)
I create a small site to fix really quick this issue. gitlab fix remote
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
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
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.
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
stg
andstgps
is a group? Does push to your own repos work?