git push-权限被拒绝-请求的URL返回错误:403 [英] git push - Permission to denied - The requested URL returned error: 403
问题描述
和其他许多命令一样,当我使用git push时,会出现下一个错误:
As many other, when I use git push I get the next error:
远程:对MyName的mmistakes/minimal-mistakes.git权限被拒绝.致命:无法访问" https://github.com/mmistakes/minimal-mistakes.git/':所请求的URL返回错误:403
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
我在Windows中工作,我有git 2.22.我试过了:
I´m working in Windows, I have git 2.22. I tried:
- 在终端中运行以下两个命令,以替换显而易见的内容:
git config --global user.name您的名字在这里"git config --global user.email您的电子邮件地址在这里"
git config --global user.name "Your Name Here" git config --global user.email "Your Email Address Here"
-
这一个"如何更改是Git Bash上的用户?"
删除Windows凭据
Deleting the Windows Credential
向Github添加ssh密钥
Adding a ssh keys to Github
但是这些都不对我有用.
But non of those things work for me.
推荐答案
403是禁止的错误代码...只要您确定git用户名和密码正确,就必须确保自己是GitHub存储库上的授权用户在此处有关所需权限的更多详细信息.
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.
这篇关于git push-权限被拒绝-请求的URL返回错误:403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!