search

Home  >  Q&A  >  body text

github - git push prompts that the user does not have permission and returns 403

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

伊谢尔伦伊谢尔伦2808 days ago688

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:40:04

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:40:04

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

    reply
    0
  • Cancelreply