GitHub homepage still displays an old contributor after rewriting Git history and force-pushing #214470
Replies: 2 comments
|
Since the old account is already missing from Insights → Contributors, it seems like the homepage contributor list might be using stale cached data. I don't think recreating the repository should be necessary, especially since you've already corrected the history and verified the remote. You could try contacting GitHub Support to see if they can trigger a refresh of the contributor data on their end. It might also be worth checking whether the contributor list eventually updates on its own, since GitHub may cache this information separately from the Insights page. |
|
Your history is fine. Here's what the public API showed on Dec 1 around 18:00 UTC:
So don't rewrite anything else. The sidebar list is cached separately from Insights, and a force-push doesn't always refresh it. Several people in the staff-pinned thread #209302 cleared it by making GitHub re-read the default branch. Changing the default branch needs a second branch, so this creates one at the same commit and removes it afterwards: git push origin main:recount
git push origin --delete recount
Commits, tags and releases stay as they are, since Reference for step 1: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/changing-the-default-branch GitHub doesn't document this as a way to refresh the cache, so treat it as a workaround, not a guaranteed fix. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
Hello everyone,
I'm experiencing an issue with the Contributors section on my GitHub repository homepage.
Repository: Invictus-Games-Engine-Patches Repository URL: https://github.com/Cichito/Invictus-Games-Engine-Patches
An old GitHub account still appears in the contributor list on the repository homepage, even though I have corrected the Git history.
Here is what I have already done:
Rewrote the incorrectly attributed commit using git commit --amend --reset-author.
Force-pushed the corrected history to origin/main.
Verified that the local main branch and remote main branch have exactly the same commit hash.
Checked all branches and tags.
Verified that no current commits reference the old username or email.
Checked commit messages for old author references.
Cleaned the local Git reflog.
Updated both global and local Git identity configurations.
The current commits are correctly attributed to my main account, Cichito.
More than 48 hours have passed since the history rewrite, but the old account still appears in the Contributors section on the repository homepage.
Interestingly, the old account does not appear in the Insights → Contributors page.
My question is:
Is there any way to force GitHub to recalculate or refresh the contributor information displayed on the repository homepage without deleting and recreating the repository?
I want to preserve all existing commits, tags, releases and project files.
Any help would be greatly appreciated.
Thank you!
All reactions