github - git push prompts that the user does not have permission and returns 403
伊谢尔伦
伊谢尔伦 2017-05-02 09:38:04
0
2
687

As shown below:

I submitted git push origin master to github, and then it kept prompting me with this error, which means that my xxxx88 user (the red box in the screenshot) does not have permission and returns 403.

Note: My github username is not this xxxx88, but another one, for example, called abc. I used to use the mac client provided by github to submit without any problems. Now I use the command to submit, and it appears. solved this problem.

I tried changing the git config, global, project, and username to abc, but it didn’t work. I also uploaded the ssh keys generated by each account to github, but it didn't work either.

Advice: How to solve this problem? Thank you very much

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
过去多啦不再A梦

I remember that github https mode requires login.
It is recommended to use ssh mode. After configuring the public key, there should be no unauthorized access and there is no need to enter the account password

伊谢尔伦

If there are other related configurations under the /path/to/.git/config里,看看credential node, delete them~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template