How to solve Access denied in gitlab?

旧街凉风 提交于 2020-01-03 08:47:06

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!