Gitのコミットメッセージに Co-authored-by トレーラーを追加するだけ。
Co-authored-by: Claude <noreply@anthropic.com>
git commit -m "feat: add feature
Co-authored-by: Claude <noreply@anthropic.com>"Claude Codeのsettings.jsonにattributionを設定する
{
"attribution": {
"commit": "Co-authored-by: Claude <noreply@anthropic.com>",
"pr": "Generated with Claude Code"
},
}- ユーザーレベル: ~/.claude/settings.json
- プロジェクトレベル: .claude/settings.json
- ローカル: .claude/settings.local.json
ref: Claude Codeの設定のattributionについて
# ~/.gitmessage
Co-authored-by: Claude <noreply@anthropic.com>git config --local commit.template ~/.gitmessage
# Globalで設定する場合は --globalオプションを付与
# git config --global commit.template ~/.gitmessage公式手法をつかうのが一番