问题
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:
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.
回答3:
What might help is
git config --system --unset credential.helper
then enter new password for Git remote server.
回答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.
回答5:
Very late here, but for posterity's sake:
If you do not have a gitlab password (initially signed up through github or something), then this will fail. You will just need to go to the page and create a password. At least that worked for me.
来源:https://stackoverflow.com/questions/41263662/how-to-solve-access-denied-in-gitlab