Why old commits disappear from your contribution graph
Your contribution graph looks thinner than the work you actually did.
You changed or removed an email address, and commits you authored under the old address no longer appear.
The question is whether to add that old commit email back to your GitHub account.
GitHub documents a specific answer: if you removed an email used to author older commits, or moved it to a different account, those historical contributions stop appearing.
Adding the exact historical commit email back to your account restores attribution, and you do not need access to that mailbox.
That is the payoff this article delivers: how to confirm the address, add it, and check the result without guessing.
GitHub counts a commit toward your graph only when the commit email is connected to your account.
The GitHub-provided noreply address in your email settings also qualifies.
An address that is not connected does not count.
So when you remove an address that authored older commits, or move it to another account, those historical contributions leave your graph.
This is documented behavior, not a display glitch.
The fix is narrow.
Add the exact historical commit email address back to your account.
GitHub states the graph rebuilds automatically when you add the new address.
You do not need to control the mailbox.
Verify the author email before you change anything
Do not guess which address authored the commits.
GitHub documents a direct check: add .patch to the end of a commit URL and open it.
The resulting page shows a From: field.
The address there is the one set in your local Git configuration when the commit was made.
That is the address you need to match.
If you cannot find the commit at all, the author date and commit date may differ because history was rewritten.
GitHub suggests using git show with the commit SHA and the --pretty=fuller option to compare the two dates.
You can then search the repository commits by the specific date.
Write down the exact address from the From: field.
Exactness matters, because a near match will not link the commits.


