Pha*_*inh 10 git window github
我尝试推送到我的存储库,但我收到了以下错误
git push origin master
remote: Permission to PhanVanLinh/phanvanlinh.github.io.git denied to edgarphan.
fatal: unable to access 'https://github.com/PhanVanLinh/phanvanlinh.github.io.git/': The requested URL returned error: 403
Run Code Online (Sandbox Code Playgroud)
之前,我使用的是用户名,edgarphan但我已将其更改为PhanVanLinh但仍保留edgarphan.我试图删除项目并再次克隆,卸载git并重新安装,但它将无法正常工作.
我该如何解决这个问题?任何帮助或建议将非常感谢.
Von*_*onC 35
这与您的user.name/ user.email设置无关:这些是提交中的作者身份.当您推送到仓库时,它们不用于身份验证.
如果Git 没有要求您提供GitHub(新)用户名/密码,那意味着Git for Windows正在使用名为"manager"的Git凭证帮助程序(执行a git config credential.helper确认)
含义:它正在缓存您的旧凭据并自动重用它们.
在这种情况下,请转到Windows开始菜单(
),键入"凭据"并选择Windows工具" Windows凭据管理器 ".

在其中,您将找到一个git.https://github.com可以编辑的条目,您可以在其中输入新的GitHub用户名/密码.
然后再试一次.