更改用户名Github的“你必须确认你的电子邮件地址” 403错误的混帐推
更改用户名Github的“你必须确认你的电子邮件地址” 403错误的混帐推
最近,我改变了我的用户名在github上(让一切都重定向到一个新的URL我的用户名)
我此错误通过的CMD线git push
You must verify your email address
Fatal: The request URL returned error: 403
然而,github上WO uldn't让我重新发送电子邮件验证帐户下我所有的新的回购协议>设置
我也做了以下内容,每githubs准则的用户名变化
git remote set-url origin https://github.com/myNewUserName/repo-name
。然后,我保证我的电子邮件正确设置我的git的/ config文件
git config --global user.email "[email protected]"
还是没能解决问题
SOLUTION:我结束了接触github上支持
Github上的支持,说使用此命令
git config --global --unset credential.helper
这样我就可以重新进入我的账户INF ormation发送git push
这时候没有工作,所以我不得不去
Control Panel
→User Accounts
→Credential Manager
→Windows Credential Manager
→删除由于我的回购归我OLD-致力于与GitHub的相关
的一个用户名,尽管我没有更改电子邮件,但使用我的新用户名存在冲突。
我不得不禁用“*命令行推送您的个人电子邮件地址”作为一个潜在的解决方案。我发送提交时专用的电子邮件,所以这是不适合我
每github上出了问题,原因如下:这里
If you want to keep this feature enabled (block cmd line expose email), you'll need to re-write the Git history of this repository to remove your private email address from the author info for each commit. Alternatively you can turn off this feature.
替代解决方案
https://help.github.com/articles/changing-author-info
这里设置信息
https://github.com/settings/emails
希望这可以帮助别人出改变他们的GitHub用户名时