Claude still appears in Contributors sidebar after Git history rewrite #213042
Replies: 3 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
I checked the repository, and your cleanup worked. Only the homepage cache is stale. You can refresh it without rewriting anything or deleting any branches. What the repository shows now.
Why the homepage disagrees with the API. The homepage Contributors box is cached separately from the REST API, and a force push doesn't trigger a recount. Waiting longer won't clear it. Recent threads show the same pattern on other repositories (#212504, #212636, #212731, #213020). You can keep your backup branch and old branches. The trailer is still in several places:
The box doesn't seem to count those refs once it's refreshed:
How to refresh it: switch the default branch away and back. This fixed the same stale entry in #212504, #212972 and #212998.
This won't disturb your project:
In the two most recent cases, the list was corrected first, and If To keep it from coming back: Claude Code adds the trailer by default. To turn it off, add this to {
"attribution": { "commit": "", "pr": "" }
} |
|
Hi, Your checks are thorough. The homepage sidebar, the Contributors API and the Insights graph are computed and cached separately, so a mismatch after a history rewrite is a known type of problem. In your case there is a likely cause you can check yourself. 1. The most likely cause: old commits are still reachable You kept a backup branch with the original history, and older branches and pull request references remain. The sidebar can reflect contributors from every ref in the repository network, not only Check what still contains the old commits: git ls-remote originLook for git branch -r --contains <old-commit-sha>
git log --all --format='%H %an <%ae>%n%b' | grep -i -E "co-authored-by|claude|anthropic"Pull request refs ( 2. Check for remaining trailers on git log main --format='%H%n%B' | grep -i "co-authored-by"Any remaining 3. Safe ways to trigger a refresh without rewriting history
git commit --allow-empty -m "chore: refresh repository stats"
git push origin main
4. What probably can't be fixed from your side If old pull request refs hold the commits, you can't delete them yourself. Only GitHub can purge them. Moving the backup branch elsewhere (for example into a local bundle) can help the branch side, but it doesn't touch PR refs: git bundle create backup.bundle --allOnly delete the remote backup branch after you have verified the bundle with 5. Escalation Support told you to use self-service resources, so the realistic paths are:
Please don't post secrets or private details in this thread. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
Claude still appears in Contributors sidebar after Git history rewrite
Hello GitHub Community,
I need help correcting stale contributor data in my repository.
Repository: https://github.com/ujjawalsingh2966-sys/SIH26035
Problem:
Claude Code still appears as a contributor on my GitHub repository homepage, even after removing its co-author attribution from Git history.
Actions already completed:
mainand three pull-request branches.ujjawalsingh2966-sysanddinamsingh.Current main commit:
10118aca66ac107eb2a4314b11c2c3659e53b9ffPrevious GitHub Support ticket: #4986352
GitHub Support closed my ticket because my account currently has access to self-service support resources only.
I have retained a backup branch containing the original history, and some older branches and pull-request references remain.
My questions:
I would appreciate guidance on resolving this issue without disturbing my working project.
Thank you.
All reactions