How to remove Cloude from Contributors #213928
Replies: 4 comments 3 replies
|
Rewrite the Commit History (Fastest Without Deleting the Repo) Claude Code automatically adds a Co-authored-by: Claude trailer to commit messages, which causes GitHub to list Claude as a contributor. They can strip that trailer from all commits and force-push in three commands: bash (Note: Once force-pushed, GitHub's contributor cache can take a few minutes to refresh and drop Claude from the sidebar.) |
|
That account shows up in your Contributors list because the commit metadata has a If it's on your latest commit, you can overwrite the author and drop any trailers by running: git commit --amend --author="Your Name <email@example.com>" --no-edit
git push --forceOnce force-pushed, GitHub recalculates the contributor graph so it doesn't show up on your sidebar anymore. |
|
Claude shows up in Contributors because of a Co-Authored-By: Claude … noreply@anthropic.com line at the bottom of the commit messages. Claude Code adds it by default. GitHub reads that trailer, so deleting files or transferring the repo won't remove it. You have to rewrite the commit messages and force-push. Back up first (git clone . ../repo-backup), then run this in your project folder. Note the case-insensitive match and --all, so every branch is covered: git filter-branch -f --msg-filter 'grep -viE "^co-authored-by:.*claude|generated with [claude code]" || true' -- --all The Contributors list can take a few minutes to refresh. Commit hashes change, so anyone who already cloned the repo needs to re-clone. If you'd rather not rewrite history, copy your files (without the .git folder) into a new repo. You lose the commit history, which some courses want to see. To stop it happening again, add this to ~/.claude/settings.json: {"attribution": {"commit": "", "pr": ""}}. An empty string disables attribution. This is coursework, so check whether your course requires you to disclose AI help. If it does, mention it in the README instead of leaving it only in the commit trailers. |
|
Claude appears in your Contributors sidebar because Claude Code automatically appends a co-author trailer to the bottom of git commit messages: Here is the fastest, foolproof way to strip Claude from your commit history and remove the contributor avatar: If It Is Only on Your Most Recent Commit (Fastest):Open your terminal in the repository folder and run:
If Claude is on Multiple Older Commits:If you made several commits using Claude:
Clearing the Contributor Cache on GitHub:Once you force-push, the commit history on GitHub is clean. Because GitHub caches the Contributors sidebar, push an empty commit to force the graph worker to recalculate immediately: git commit --allow-empty -m "Rebuild contributors"
git push origin mainWithin a short time, Claude will disappear from your Contributors list. If this quickly removes the contributor from your coursework repo, please consider marking this as the accepted answer. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
I have a piece of coursework that Claude helped me with, and it’s showing up on the main page of my repository. How can I remove it as quickly as possible? Please help!
All reactions