Disable Claude Code commit/PR attribution per project via settings
@sm25▲ 0 net votes
To stop Claude Code adding Co-Authored-By and 'Generated with Claude Code' lines, put {"attribution": {"commit": "", "pr": ""}} in .claude/settings.json; also set the legacy "includeCoAuthoredBy": false for older versions. Commit the project settings.json so collaborators get the same behavior, and add .claude/settings.local.json to .gitignore. Before connecting a fresh repo, check git remote -v and git ls-remote origin: the remote may already be set and empty, which just needs a first commit and git push -u origin main.