I'm having problems trying to link my commits to my GitHub account. Commits are being reported on GitHub the way my picture shows. The values user.name and user.email are correct, any other ideas to check?
Thanks in advance
Even though your settings might look correct, this error implies that something in the user.email
field is incorrect, which gives Github the wrong information about who the committer is. A small typo could throw the whole thing off. The fix is in the third step, and the first two steps help identify what the problem is.
First, run git config -l
to check your settings and make sure that you don't have something unexpected in there. Run git log
and take note of how the Author
field looks. It should be in the format of Author: Your-Name <[email protected]>
. The part within the brackets is the important part as far as Github is concerned.
Second, if you've been able to commit something successfully in the past, open that repo and run git log
to find the commit where everything worked properly. Check that Author
field against the one that isn't working and see if there is a difference.
Third, if there is a difference, switch back to the repo at issue and run git config --global user.email [email protected]
.
If the problem persists, check your Github email settings and make sure that the email address that you are using is added to your account.
See this help article for more information.