无法使用命令推动到GitHub:git push -U Origin Master



我无法使用cmd中的以下命令将项目推向github:git push -u oinct master

远程:shashank136/django_polling_app.git拒绝Rishidada136的权限。 致命:无法访问'https://github.com/shashank136/django_polling_app.git/':请求的URL返回错误:403

我的github帐户使用ID shashank136.sk@gmail.com

任何想法如何解决此错误。

有不同的可能性,为什么您无法访问回购:

1(首先确保遥控器正确:

git remote -v

验证它指向正确的github repo

2(确保使用

的git配置中的用户名和电子邮件是正确的
git config user.email

如果它们与您的GitHub帐户不同,请使用

更正它们
git config user.email "<your email associated with github">

3(确保您的密码正确: 您可以使用:

更新密码
git config --global user.password
git remote set-url origin https://yourusername@github.com/<user-name>/<repo-name>.git

最新更新