Troubleshooting

Commits on GitHub aren't linking to my account

Make sure that the email address you set in your local Git configuration has been added to your GitHub account's email settings. After adding your email, commits that used that email address will automatically be counted in your contributions graph. There is no limit to the number of email addresses you can add to your account.

Changing your email address in your local Git configuration settings only affects commits that you make after that change. Old commits will still be associated with the old email address.

New commits aren't using the right email

If git config user.email reports the correct email address for the repository you're viewing,
but your commits are using the wrong email address, your environment variables may
be overriding your email address.

Make sure you have not set the GIT_COMMITTER_EMAIL or GIT_AUTHOR_EMAIL variables.
You can check their values with the following command:

echo $GIT_COMMITTER_EMAIL# prints the value of GIT_COMMITTER_EMAILecho $GIT_AUTHOR_EMAIL# prints the value of GIT_AUTHOR_EMAIL