Change username Github "You must verify your email address" 403 error on git push
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 Panel
→ User Accounts
→ Credential Manager
→ Windows 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/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 problem for me was that I cloned the repo originally over HTTPS and had 2FA enabled. Once I set the remote URL to SSH, then it all worked fine!
git remote set-url origin git@github.com:user/repo-name.git