How to remove Claude Code from Contributors? #197389
Replies: 11 comments 21 replies
|
Yeah this is a known thing Claude Code does, it adds itself as a co-author in the commit message automatically. The contributors list on GitHub is built directly from commit history, so even if you rewrote or removed that commit locally, GitHub has already cached it on their end. Simply rewriting git history doesn't update the contributors list immediately. To answer your question, yes it should eventually disappear once GitHub purges the dangling commit from their servers, but that timeline isn't guaranteed and can take a while. The more reliable way to handle it is to make sure the rewritten history is actually pushed correctly. If you did a rebase or amended the commit, you need to force push that branch so GitHub picks up the updated history. Once the original commit no longer exists anywhere in the remote repo and GitHub runs its cleanup, the contributor entry should go away. If it still shows up after all that, it might be worth raising it directly with GitHub support since the contributors list is supposed to reflect actual commit history. |
|
No, I would not rely on a “30 day GitHub GC” timer. GitHub shows a person as a contributor if reachable commits on the repository, especially the default branch, still attribute them as author/co-author. A The fix is:
For a single bad commit: git fetch origin --prune --tags
git switch main
git pull --ff-only origin main
git rebase -i BAD_COMMIT_SHA^
# In the editor, change "pick" to "reword" for the bad commit.
# Remove the "Co-authored-by: Claude ..." line.
# Save and close.
git log --all --grep='Co-authored-by:.*Claude' --format='%h %s'
git push --force-with-lease origin main |
|
GitHub’s contributor graph isn’t updated instantly and doesn’t rely solely on the current visible history. If you’ve already rewritten history and force-pushed the branch so that the Co-authored-by: line no longer exists in any reachable commit, then the contribution should eventually disappear. However, GitHub caches contributor statistics and rebuilds them periodically, so seeing the author listed immediately after rewriting history is normal. The 30-day garbage collection window is probably not the deciding factor here. The key question is whether any branch, tag, fork, or pull request still references a commit containing the co-author attribution. If such a reference exists, GitHub may continue to associate that user with the repository. I’d check: git log --all --grep="Co-authored-by" and verify that no branches or tags still contain those commits. If the co-authored commits are truly unreachable everywhere and GitHub has had time to refresh its contributor data, the contributor entry should eventually disappear. |
This comment was marked as low quality.
This comment was marked as low quality.
|
just give it prompt remove your co-author from my commits 😂 |
|
Great! Tnx |
|
|
microslop needs to add a button to control visbility of co authors lol |
|
What's your problem with that? You try to hide the fact that it's AI coded your project?.. TBH, that's much better for other people to clearly see that they need to trust your code with a pinch of salt. |

GitHub’s contributor graph isn’t updated instantly and doesn’t rely solely on the current visible history.
If you’ve already rewritten history and force-pushed the branch so that the Co-authored-by: line no longer exists in any reachable commit, then the contribution should eventually disappear.
However, GitHub caches contributor statistics and rebuilds them periodically, so seeing the author listed immediately after rewriting history is normal.
The 30-day garbage collection window is probably not the deciding factor here. The key question is whether any branch, tag, fork, or pull request still references a commit containing the co-author attribution. If such a reference exists, GitHub ma…