Fixing Stale GitHub Stats: When Your Contributor Graph Won't Update

Maintaining accurate github stats is crucial for any development team, especially when tracking contributions and progress. But what happens when GitHub’s own contributor graph gets stuck, showing a removed author long after their commits have been purged from history? This common frustration was recently highlighted in a GitHub Community discussion, providing valuable insights into a persistent caching bug and potential workarounds.

Developer analyzing GitHub contributor graph with a caching problem
Developer analyzing GitHub contributor graph with a caching problem

The Case of the Ghost Contributor

User ana-brihac encountered this exact problem: after meticulously rewriting her repository's history to remove a contributor and force-pushing the changes, the "Insights → Contributors" graph stubbornly continued to display the removed account. Her troubleshooting was exhaustive:

  • Commit History Rewrite: Authorship was rewritten on all commits using rebase/filter-repo.
  • Verification: She confirmed zero matches for the removed author across all local and remote branches using:
    git log --all --format='%an %ae %cn %ce %s' | grep -i claude
  • Collaborators & Apps: The repository had no collaborators or GitHub Apps installed.
  • Pull Requests: A search for is:pr yielded zero pull requests, open or closed, ever.

Despite these thorough checks and waiting four days, the contributor graph remained unchanged. Her support ticket was auto-closed, leaving her to seek community wisdom.

Changing repository settings to refresh GitHub data
Changing repository settings to refresh GitHub data

Community Diagnosis: A Known Caching Bug

The community quickly confirmed ana-brihac's suspicion: this is a known, recurring caching issue. As Totalwally pointed out, the Contributors view is generated from GitHub's repository statistics, which can lag behind actual Git history. nirav-gajera further elaborated, identifying it as a specific bug where the sidebar/homepage "Contributors" widget (backed by a separate cache) and even the "Insights → Contributors" system don't reliably recompute after a history rewrite. He cited several other discussions (#202123, #202032, #189812, #202540) with identical symptoms.

This bug highlights a challenge for teams relying on precise github stats for tracking contributions and meeting engineering team goals. When data isn't refreshed, it can lead to misinterpretations of team activity or even make a Gitclear alternative seem more appealing for accurate metrics.

Potential Solutions and Workarounds

While there's no guaranteed user-side fix, the community offered a couple of promising approaches:

1. Toggle Your Default Branch

A surprising workaround that has helped some users is to temporarily switch your repository's default branch. This action can sometimes force GitHub to reprocess repository metadata, potentially kicking the stale cache. To try this:

  • Go to Settings → Branches.
  • Temporarily switch the default branch to another existing branch (e.g., gh-pages or a test branch) for about 30 seconds.
  • Switch it back to your original default branch (e.g., main).

2. File a Targeted Support Ticket

Since generic support tickets on free plans might auto-close, nirav-gajera recommended filing a new, highly specific ticket. This helps GitHub staff route the issue correctly and recognize it as a known pattern that requires manual intervention to invalidate the cached entry. When filing, include:

  • Your exact repository link.
  • Confirmation that your Git history is clean (mentioning the git log command you ran).
  • The elapsed time since the force-push (e.g., "4+ days").
  • Links to precedent discussions (e.g., #202123, #202032) to demonstrate it's a recurring bug.
  • Specify the category: Repositories → Graphs and Insights → Contributors Graph.

Conclusion

Dealing with stale github stats, particularly in the contributor graph, can be frustrating. This community insight confirms that if your Git history is clean, you're likely facing a GitHub caching bug. While waiting and re-checking is always an option, proactive steps like toggling your default branch or filing a detailed, category-specific support ticket offer the best chances for resolution. Accurate data is vital for assessing engineering team goals and overall developer productivity, making these workarounds invaluable for maintaining reliable repository insights.

|

Dashboards, alerts, and review-ready summaries built on your GitHub activity.

 Install GitHub App to Start
Dashboard with engineering activity trends