尝试将文件从git推送到github时出现错误,发生此错误

时间:2019-04-05 04:40:57

标签: git github

我知道:

git push -u origin master
remote: Permission to zeraMe1ster/Video-Sharing-Platform-Proposal.git denied to codingTrainSauhard.
fatal: unable to access 'https://github.com/zeraMe1ster/Video-Sharing-Platform-Proposal.git/': The requested URL returned error: 403

知道要怎么做吗?

我已检查我的配置文件和用户名,以及电子邮件是否与zeraMe1ster关联,而不与codingTrainSauhard关联。

1 个答案:

答案 0 :(得分:1)

您的配置文件仅用于提交创作,不是用于GitHub认证。

您需要检查您是否有凭据帮助程序当前正在为GitHub缓存错误的凭据:

git config credential.helper

如果看到manager,则将Windows凭据管理器打开到check the github.com entry

对于OSX钥匙串,请遵循“ Updating credentials from the OSX Keychain

确保远程来源是您的仓库:

git remote -v
# if incorrect:
git remote set-url origin https://github.com/<yourAccount>/<yourRepoOrFork>
相关问题