Change username Github “You must verify your email address” 403 error on git push

心不动则不痛 提交于 2019-12-05 13:15:32

SOLUTION: I ended up contacting github support

Github support said to use this command

git config --global --unset credential.helper

so that I could re-enter my account information when sending git push

This didn't work so I had to go to

Control PanelUser AccountsCredential ManagerWindows Credential Manager → Delete the one associated with github

Since my repos were committed under my old-username, there were conflicts using my new-username, despite the fact I had no email changes.

I had to disable "Block-command line pushes that expose your personal email address" as one potential solution. I have a dedicated email when sending commits so this is not a problem for me

Per github, the reasons are as follows:

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.

Alternate solutions here

https://help.github.com/articles/blocking-command-line-pushes-that-expose-your-personal-email-address/

https://help.github.com/articles/changing-author-info

Settings information here

https://github.com/settings/emails

hopefully this helps out someone when changing their github username

For OSX had to access keychain app and delete the key associated with github.

They key had a '@' symbol.

The key point is to know which account to handle.

Firstly, you shall check the email .

git config user.email

You got the email, then verify it .

The Github helper is in detail Verifying your email address

Login Github account according to the email , Settings -> Emails -> Send verification email,

All you need to do is to check Github's link in your mailbox.

I was experiencing this error, and the following solved my issue:

ssh-add -D && ssh-add
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!