r/github • u/__The_StyX__ • Aug 05 '26
Question Lost Contributions
Hi,
I’m a beginner on GitHub, but for almost a year I have been committing code to different repositories in my account. Most of those commits were pushed manually without using CMD or commands.
Recently, I started committing through CMD. My contribution graph showed nearly a year of uninterrupted green marks. However, after I removed one of my email addresses from GitHub and later added it back, almost half of my commits disappeared from the contribution chart.
Even though the contribution history still shows that I pushed code during those months, those contributions are no longer visible in the graph. As a result, my nearly one-year streak is gone.
I contacted GitHub Support, but they said this is a self-service issue and closed the ticket.
Luckily, I have screenshots of my contribution graph before and after this happened.
Can someone help me fix this?
View all comments
Show parent comment
1
u/Ok_Woodpecker_9104 Aug 05 '26
those two are not the same data source, so them disagreeing is expected. it is not evidence of an indexing bug, and it does not rule out the branch theory. it is actually the signature of it.
the activity feed is built from push events. a push event records commits on whatever ref you pushed, side branches and forks included. the calendar is built from the contributions index, which applies the default-branch, not-a-fork, owner-or-collaborator filter after the fact. so "feed shows commits that day, square is empty" is exactly what side-branch work looks like.
the second difference bites harder. the calendar keys on the commit author date. the feed keys on when the push event happened. i once pushed a mirror repo with 2,229 commits whose author dates were spread over three years. the feed showed a single event on the day i pushed. the squares landed on the author dates. so if you ever pushed a batch of older work, the two views are off by however long that gap was, and the missing months in one can be present in the other.
to settle it, open the feed entry for one of the empty days and click through to the commit list. the ref is in the url. if it is not the repo default branch, thats your answer.