How to solve Access denied in gitlab?

2019-06-18 16:18发布

问题:

When I run : git push, there is exist error like this :

remote: Access denied
fatal: unable to access 'https://gitlab.com/myname/mysystem.git/': The requested URL returned error: 403

Is there any people who can help me?

回答1:

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

You can find this documentation helpful.



回答2:

What might help is

git config --system --unset credential.helper

then enter new password for Git remote server.



回答3:

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.



回答4:

if you made your account by signing in with Github or Bitbucket, etc. add a password to your account so you can push, pull and clone with Gitlab.



标签: git gitlab