How to solve Access denied in gitlab?

For Windows users, check this unbelievable easy solution, which works for me:

Go to Windows Credential Manager (press Windows Key and type 'credential') to edit the git entry under Windows Credentials. Replace old password with the new one.


For Windows User

Go to Control Panel->Credential Manager->Windows Credentials select github or gitlab credentials and modify it. This is for windows10

enter image description here

Update your credentials again

and add access token here

https://gitlab.com/profile/personal_access_tokens


You need to add an SSH key to your GitLab and make sure git is using that key.

You can find this documentation helpful.


What might help is

git config --system --unset credential.helper

then enter new password for Git remote server.

Tags:

Git

Gitlab