-
Select Topic AreaQuestion BodyI have a public repository under my own account (not a fork). When I check with: However, on GitHub:
Other commits in the same repo do link to my profile correctly.
But the issue still happens for some commits. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
|
There's probably a small mismatch somewhere. A couple things I’d double-check: • Make sure the commit email matches exactly the one verified in your GitHub settings (even small case differences can sometimes cause issues). Also confirm that the commits are on the default branch (contributions only count there). But since some commits in the same repo do link, it’s likely an email mismatch. If everything looks correct, it might just be GitHub needing some time to re-index contributions after the history rewrite / force push. |
Beta Was this translation helpful? Give feedback.
-
|
Another thing worth checking is whether the commit email is associated with your GitHub account and visible to GitHub’s contribution system. A few additional checks that sometimes fix this issue:
Also, sometimes GitHub needs a bit of time to re-index contributions after a force push or history rewrite, so the avatar and contribution graph may update after a short delay. |
Beta Was this translation helpful? Give feedback.
-
|
Good explanation. Another thing that can sometimes cause this issue is using a different email in the local Git configuration than the one verified on the GitHub account. Running the following commands locally can help confirm the configuration: git config --global user.name If the email doesn't match a verified email on the GitHub account, the commits may appear as unlinked or not counted in the contribution graph. |
Beta Was this translation helpful? Give feedback.
-
|
Since the Merge Pull Request created from GitHub’s web UI works, but commits pushed from your local machine don’t show your avatar, the problem is likely related to your local Git identity configuration. Even if the config looks correct, there could be a small issue like a hidden space or mismatched email. A simple fix is to reset your Git identity completely: git config --global user.name "dohaidang" Then make sure the repository itself isn’t overriding it with a different local configuration. Run this inside the repository: git config user.email "family010203@gmail.com" After that, update the author of your latest commit to test if the configuration is working: git commit --amend --reset-author --no-edit Finally, push the commit again: git push --force If your GitHub avatar appears correctly after the push, it means the issue was with the commit author details. You can then fix older commits by rebasing and resetting their authors in the same way. |
Beta Was this translation helpful? Give feedback.
-
|
Good explanation. Another thing worth checking is whether the commit email is actually linked to your GitHub account. GitHub only associates commits with your profile if the commit email matches one of the emails added in your account settings. If the email used in You can verify it by running: git config --global user.email Then compare that with the email listed in your GitHub account under Settings → Emails. If they don’t match, either update the Git config or add that email to your GitHub account. This is usually the most common reason commits don’t show up on the profile or contribution graph. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.

The fact that the Merge Pull Request works (created on GitHub's web UI) but your local pushes don't confirms the issue is definitely in your local Git environment.
Even if it looks correct, there might be a hidden space or a case-sensitivity issue. Instead of trying to find it try resetting your identity from scratch:
git config --global user.name "dohaidang"git config --global user.email "family010203@gmail.com"Ensure this specific repo isn't using a hidden local config (run this inside the repo)
git config user.email "family010203@gmail.com"To test if this fixed it, run this on your most recent commit:
git commit --amend --reset-author --no-editIf your avatar appears after a
git pu…