Description
The includeCoAuthoredBy: false and gitAttribution: false settings in ~/.claude/settings.json are not being respected. Commits made by Claude Code still include the attribution trailers:
馃 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Configuration
// ~/.claude/settings.json
{
"model": "claude-opus-4-5-20251101",
"includeCoAuthoredBy": false,
"gitAttribution": false,
// ... other settings
}
Expected Behavior
When includeCoAuthoredBy: false is set, commit messages should NOT include:
馃 Generated with [Claude Code](...)
Co-Authored-By: Claude ...
Actual Behavior
The trailers are still added to every commit, regardless of the setting.
Workaround
Added a commit-msg git hook to strip the trailers:
#!/usr/bin/env bash
sed -i '' '/^馃 Generated with \[Claude Code\]/d' "$1"
sed -i '' '/^Co-Authored-By: Claude/d' "$1"
Environment
- Claude Code version: Latest (Dec 2025)
- OS: macOS Darwin 25.1.0
- Model: claude-opus-4-5-20251101
Description
The
includeCoAuthoredBy: falseandgitAttribution: falsesettings in~/.claude/settings.jsonare not being respected. Commits made by Claude Code still include the attribution trailers:Configuration
Expected Behavior
When
includeCoAuthoredBy: falseis set, commit messages should NOT include:馃 Generated with [Claude Code](...)Co-Authored-By: Claude ...Actual Behavior
The trailers are still added to every commit, regardless of the setting.
Workaround
Added a
commit-msggit hook to strip the trailers:Environment