r/github • u/CollectionWestern510 • May 30 '26
Discussion Why does GitHub still show another contributor even after I reset my repo?
Hey everyone,
I’m working on a backend project (Next.js + MongoDB) and ran into a confusing issue.
I created a new repo and pushed my code. Then I realized GitHub shows another contributor (s.....4) in the Contributors section, even though:
- I deleted my local
.gitfolder - Re-initialized git
- Made a fresh commit
- Force pushed to
main
My current commit log shows only my commit:
Initial commit: xxxx
But GitHub still shows:
Contributors:
- sxyz..94
My questions:
- Why does GitHub still keep showing that contributor?
- Is it because of old commit history on the remote repo?
- What’s the correct way to fully reset a repo so only my account appears?
Would appreciate any explanation — I want to understand what I did wrong in Git/GitHub workflow.
0
Upvotes
5
u/Alternative-Tax-6470 May 30 '26
This happens because GitHub links contributors by tracking the email address attached to every single commit in the repository history, not just the most recent ones. Even if you force pushed a fresh initial commit over your main branch, the old commits still exist as orphaned objects in GitHub's backend caching layer until garbage collection runs.
The easiest and cleanest way to completely purge that history and remove the contributor listing is to delete the remote repository on GitHub entirely, create a fresh blank repository with the same name, and push your re-initialized local project to it.
2
u/wewerecreaturres May 30 '26
Make a whole new repo
2
u/prettyproblemx22 May 31 '26
It is likely pulling that data from your commit history because the author metadata is tied to the individual commits, not the current state of the files. You would have to rebase or force push a clean history to actually scrub those signatures from the repo.
2
u/FingerAmazing5176 May 31 '26 edited May 31 '26
GitHub has a 30ish day cache. Even if
You delete and force push. Which is one of the reasons it so incredibly dangerous to accidentally push secrets even if they are caught and deleted right away.
Your options are to wait, or delete the repo and re-create
1
u/jeffcgroves May 30 '26
What happens if you do
git logon your local copy? Does contributor's name appear there? Is it in your.git/configfile or something?1
u/ChristopherLyon Jul 12 '26
I have a repository with 750 stars, and Claude Code pushed a sneaky commit. I have purged it, but Claude still stands as a contributor on my repository, which is quite annoying.