Unable to push to Git - keeps asking me to verify email

Viewed 1778

I am trying to push a commit to this repo: https://github.com/ttchuah/react-csv.git/

I keep getting this error: remote: You must verify your email address. remote: See https://github.com/settings/emails. fatal: unable to access 'https://github.com/ttchuah/react-csv.git/': The requested URL returned error: 403

My email address has been verified but I keep getting this error. Anything I may be missing here?


NOTE: I run "git config --get user.email" and the email is the same as I one I just verified.

I am able to push to GitHub from other repos on my machine without issue.

This is a fork of someone else's repo, if that makes any difference.

4 Answers

What's your git's user.email? Does it match your GitHub account email?

Use git config --global user.email to check your global git configuration or use git config user.email to check your repository configuration.

If it doesn't match, use git config --global user.email "hi@example.com" to set your email.

What I ended up doing as a workaround: git push https://ttchuah:password@github.com/ttchuah/react-csv.git

Thanks to NoobTW for leading me down this route.

I faced the same issue, and it is because that I changed Github account. So that the username and passwords previously saved in Git credential storage weren't correct.

Maybe you could check what kinds of ways that git storage credentials on your computer operating system:

git help -a | grep credential

In my case, I use macOSX, when git access Github Repo over HTTPS it preset to use osxkeychain to deliever username and passwords.

git config --global user.email "you@example.com"

and

git config --global user.name "Your Name"

use this command for verify user.

Related