1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Co-authored with Claude Code の設定方法

1
Posted at

Gitのコミットメッセージに Co-authored-by トレーラーを追加するだけ。

Co-authored-by: Claude <noreply@anthropic.com>

1. コミット時に手動で追加

git commit -m "feat: add feature

Co-authored-by: Claude <noreply@anthropic.com>"

2. Claude Code の設定 (Official)

Claude Codeのsettings.jsonattributionを設定する

{
  "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について

3. git commit template を使う

# ~/.gitmessage
Co-authored-by: Claude <noreply@anthropic.com>
git config --local commit.template ~/.gitmessage

# Globalで設定する場合は --globalオプションを付与
# git config --global commit.template ~/.gitmessage

所感

公式手法をつかうのが一番

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?