.agents/memory/2026-02-25-git-history-cleanup-removing-claude-co-author-attr.md

982 B

2026-02-25 Session Notes

Git History Cleanup: Removing Claude Co-Author Attribution

Implemented a plan to strip Co-Authored-By: Claude Opus 4.6 lines from 16 commits in the oddcore-website repository. Used git-filter-repo with a Python message callback to identify and remove the attribution pattern from all commit messages.

The initial git-filter-repo invocation failed because the working directory wasn't a fresh clone—git-filter-repo has safety guards against destructively rewriting history on working clones. Added the --force flag to proceed, which successfully rewrote all affected commits and removed the origin remote as a standard safety measure.

The regex pattern rb"\n*Co-Authored-By: Claude[^\n]*" was used to match and remove the co-author line regardless of leading whitespace. The repository is hosted at github.com/NicholaiVogel/oddcorp-web. Next step (pending): force-push to GitHub with --force-with-lease to rewrite the public history.