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
过去多啦不再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
伊谢尔伦2017-05-02 09:40:04
If there are other related configurations under the /path/to/.git/config
里,看看credential
node, delete them~