Old contributor still appears in repository Contributors section #207205
Replies: 3 comments 1 reply
|
Hi @Ashri421 , This is a fairly common issue. GitHub aggressively caches the contributor count and list on the main repository page to improve performance. When you rewrite history and force-push, this specific cache sometimes gets "stuck," even though the Insights → Contributors page updates correctly. Here are a few steps you can take to get it resolved:
git log --all --author="Bijaykund8"If this command returns any commits, you will need to clean those specific branches or tags as well.
git commit --allow-empty -m "Trigger GitHub cache refresh"
git push origin main
|
This is a known annoyance, and it's almost always GitHub's cached contributor data rather than something you did wrong with the rewrite.
|
|
I think the most important clue here is that the two GitHub views disagree. If I would avoid rewriting the history again or making unnecessary changes to the repository just to try to remove the old entry. First, make sure there are no remaining branches, tags, or If those checks are clean, this looks like something GitHub needs to refresh on their side. Since the history was rewritten more than a month ago, contacting GitHub Support with the repository URL and pointing out the discrepancy between the homepage and Also, I wouldn't worry about the fact that the old account may have been logged in on your computer. GitHub's contributor attribution is based on repository/commit data, not on which GitHub account happened to be signed in on a particular device. Hopefully this is just a stale piece of repository metadata and can be cleared without touching the Git history again. 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
Hello,
I own this repository:
https://github.com/Ashri421/AI-Mock-Interview
The repository's main page still shows an old contributor:
Bijaykund8 (Bijay kund)
I rewrote the repository history more than one month ago.
I verified the current remote main branch with Git, and the current history contains only my commits:
Ashritha"Personal info edited by staff"
The Insights → Contributors page now shows only my account, Ashri421.
However, the main repository page still shows "Contributors 2" and lists Bijaykund8.
How can I get this stale contributor entry removed or refreshed?
Thank you.
All reactions