Historical commits missing after re-adding verified email — REST attribution correct, GraphQL contribution count missing #212844
🏷️ Discussion TypeBug BodySummaryMy historical Git commit contributions disappeared from my GitHub profile after I removed an email address and subsequently re-added and verified the exact same address. After several weeks of troubleshooting, I performed a read-only audit using GitHub's REST and GraphQL APIs. The results suggest a discrepancy between commit author attribution and contribution graph accounting:
I am sharing a reproducible public example, aggregated audit results, and a method other users can use to check for similar discrepancies. Account and background
I have already attempted the standard troubleshooting steps:
The historical contributions have not been restored. 1. Publicly reproducible exampleRepository: Blackpachamame/landing-techtojob Affected commit: cdb86f69bc5173838c6222caef50538be3f26860 Date: September 15, 2026 Commit message: REST API resultEndpoint: Relevant fields: GitHub's API successfully attributes this historical commit to my account. Verification that the commit belongs to the default branchI also tested: Result: This confirms that the affected commit is an ancestor of the current The repository is public, is not a fork, and has GraphQL resultFor September 2026, my authenticated It returns no commit contribution for September 15, despite the REST-verified commit above. There are 29 commits attributed to my account in the repository's default-branch history during the audited period:
GraphQL counts only one commit contribution for that repository during the period, on the same date as the This is a particularly clear example because the repository is public and its commit history can be independently inspected. 2. Broader 2026 auditTo investigate whether this was an isolated issue, I also audited the repositories currently accessible to my account. Audit scope: January 1 through November 12, 2026.
The email-specific record counts include commits shared across repositories, so they are not equivalent to distinct commits. The audit found a strong historical pattern:
Important limitation: I am not claiming that all 613 distinct SHAs should count as profile contributions. Repository forks, merges, commit eligibility rules, and other factors must be considered. The audit covered currently accessible repositories and commits reachable through their default branches, not every possible historical commit. The reason I believe this is worth investigating is the specific, independently verifiable example above, together with the broader email-dependent pattern. Private repository names, SHAs, and internal details have intentionally been excluded from this public report. 3. How others can reproduce the checksIf you experienced missing contributions after removing, changing, or re-adding an email address, please consider checking a public repository and a specific historical commit. Step A — Check the REST attributionOpen: Check whether Step B — Check default-branch ancestryOpen: If the result has Also verify that the repository is not a fork and that the branch is the repository's default branch. Step C — Compare against GraphQLUsing an authenticated GitHub GraphQL client, query the contribution collection for the affected date range: query {
viewer {
login
contributionsCollection(
from: "2026-09-01T00:00:00Z"
to: "2026-10-01T00:00:00Z"
) {
totalCommitContributions
commitContributionsByRepository(maxRepositories: 100) {
repository {
nameWithOwner
isPrivate
}
contributions(first: 100) {
nodes {
occurredAt
commitCount
}
pageInfo {
hasNextPage
}
}
}
}
}
}Replace the example date range with one appropriate to your case. Check the affected repository and date. Be careful with time zones and GraphQL pagination. GraphQL reports aggregated contribution counts, not the individual counted commit SHAs. Therefore, comparing dates containing a single affected commit is especially useful. Please do not post access tokens, private repository URLs, private commit metadata, or unredacted API responses. Public examples and aggregate numbers are sufficient. 4. Questions for GitHub
GitHub's documentation says that re-adding the exact historical email should restore attribution and that the contribution graph may require up to 24 hours to refresh. In this case, the issue has persisted well beyond that window. Documentation: https://docs.github.com/en/account-and-profile/how-tos/contribution-settings/troubleshooting-missing-contributions If other users can reproduce the same mismatch between REST author attribution and GraphQL contribution counts, I would be interested in comparing the results. Thank you. Related community reportsSimilar symptoms have been reported by other GitHub users:
This discussion adds a broader REST/GraphQL audit and a publicly reproducible commit example. I hope these findings help GitHub investigate the common underlying issue. |
Replies: 2 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
@aungzayyanaing Thank you again for suggesting the temporary default-branch switch. I tested it across multiple affected repositories, and it worked repeatedly. I also completed a new authenticated GraphQL audit to verify the recovery.
Exact procedure I used
tmp-contribution-test) from the existing default branch, pointing to the same commit.mainin my repositories). There was no need to visit the repository homepage between changes.