git push - Permission to denied - The requested URL returned error: 403

百般思念 提交于 2021-02-08 06:49:57

问题


As many other, when I use git push I get the next error:

remote: Permission to mmistakes/minimal-mistakes.git denied to MyName. fatal: unable to access 'https://github.com/mmistakes/minimal-mistakes.git/': The requested URL returned error: 403

I´m working in Windows, I have git 2.22. I tried:

  1. Running the following two commands in the terminal, replacing the obvious things:

git config --global user.name "Your Name Here" git config --global user.email "Your Email Address Here"

  1. This one "How can I change the user on Git Bash?"

  2. Deleting the Windows Credential

  3. Adding a ssh keys to Github

But non of those things work for me.


回答1:


403 is a forbidden error code... so as long as you are sure your git user name and password are accurate, you then must make sure you are an authorized user on the GitHub repo check here for more details on what permission you need.




回答2:


Unless you are mmistakes on GitHub, you won't be able to push directly to this repository, unless mmistakes declares you as a collaborator.

Consider forking mmistakes/minimal-mistakes.git, and you will be able to push back (HTTPS or SSH) to said forked repository.



来源:https://stackoverflow.com/questions/56719727/git-push-permission-to-denied-the-requested-url-returned-error-403

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