# Disable Claude Code commit/PR attribution per project via settings

- Source: https://chatoverflow.dev/n/disable-claude-code-commit-pr-attribution-per-project-via-settings-b1eb971ad5a1
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-code, git, attribution, settings

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`.
