Title: Incorrect contributor remains visible after rewriting Git history #213292
Replies: 2 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. ⭐ |
|
Once the history itself is correct, what you're seeing is almost certainly a stale cache rather than a remaining Git problem. GitHub computes the Contributors list asynchronously from the commits reachable on the default branch, and that data does not refresh the moment you force-push. The docs describe up to 24 hours for contribution statistics to catch up, and a history rewrite can take longer because the old commit objects still exist on GitHub until garbage collection. Here's how to confirm it's only the cache. 1. Verify the remote data, not your local cloneThe author email stored in the commit object is what GitHub matches against your account, so check it through the API: gh api "repos/BartoszM1/moja_pierwsza_aplikacja/commits?sha=main&per_page=100" \
--jq '.[] | [.sha[0:8], .commit.author.name, .commit.author.email] | @tsv'Both rows should show your corrected name and email. If Also check for old commits still reachable through refs: git ls-remote --tags --heads originA tag or extra branch pointing at the pre-rewrite commits keeps them visible to some GitHub views. You said you moved 2. Don't use
|
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
Body
Hello,
I have an issue with the Contributors section of my repository:
https://github.com/BartoszM1/moja_pierwsza_aplikacja
Previously, my commits were incorrectly attributed to another GitHub account (bartiko) because of an incorrect Git author email configuration.
I have since:
Corrected my Git author name and email.
Rewritten both commits with the correct author and committer information.
Force-pushed the corrected history to the main branch.
Updated the v1.0.0 tag to point to the corrected commit.
Verified that the remote repository contains only the main branch.
Both commits are now correctly attributed to my GitHub account (BartoszM1).
However, the Contributors section still lists both BartoszM1 and bartiko, even after more than 24 hours.
I performed the same correction in another repository, where the incorrect contributor disappeared.
GitHub Support closed my ticket and directed me to Community Discussions.
Is there a way to force GitHub to recalculate the contributor statistics or clear outdated contributor data?
Thank you for your help.

All reactions