Unusually inflated contribution count #204353
🏷️ Discussion TypeQuestion BodyI tried removing a previous academic affiliation from 'Organisation'. I tried replacing the previous institution's email in certain repos to begin with, with my personal email. With the assistance of Claude AI, it wanted it to ensure that all repos used my personal email instead of the previous institutional email (I don't want anymore) but it ended up jumbling up my original number of contributions to this strange number of commits 3700+ in 2026, 4400+ commits across all repositories in the last year which is too astronomical compared to before. I recall that in 2024, there were 11 commits, in 2025, 186 commits, in 2026, 1870+ commits and in 'the last year', 2030+ commits across all repositories. |
Replies: 3 comments 1 reply
|
You are experiencing a classic github caching bug caused by rewriting your git history.Changing emails generated new SHA hashes,making GitHub double-count your old and new commits simultaneously.Fix it by toggling "Include private contributions on my profile" in settings to flush the cache,or contact Github support to mannually rebuild your graph. This helps you to fix your github and all the best for you.THANK YOU |
|
accpect my answer brother to get galaxy brain badge |
|
What you're seeing isn't a caching bug, and unfortunately there's no cache to flush — the contribution graph is recalculated from the commits themselves. The good news is that means it's fixable, because the graph will follow whatever the commit history says. The bad news is that right now your commit history really does say what the graph shows. What the graph actually counts. A commit shows up on your graph when (a) it's on the default branch of a non-fork repository, and (b) its author email is associated with your GitHub account. It's plotted on the calendar by the commit's author date — not by when it was pushed. Why your numbers exploded. Two things happened when the emails were rewritten:
You can confirm this in any rewritten repo: If commits you know are from 2024/2025 show 2026 dates, that's the whole story. How to restore the correct counts.
If after a correct re-rewrite and ~24 h the graph still shows phantom activity, that's the point to open a ticket at support.github.com — but in the scenario you describe, the history itself is what needs repairing, and once it's right the graph will follow. |
What you're seeing isn't a caching bug, and unfortunately there's no cache to flush — the contribution graph is recalculated from the commits themselves. The good news is that means it's fixable, because the graph will follow whatever the commit history says. The bad news is that right now your commit history really does say what the graph shows.
What the graph actually counts. A commit shows up on your graph when (a) it's on the default branch of a non-fork repository, and (b) its author email is associated with your GitHub account. It's plotted on the calendar by the commit's author date — not by when it was pushed.
Why your numbers exploded. Two things happened when the emails were rew…