Claude Code 注入系统提示以替换归因指南
1 分•作者: _mfk•19 天前
以下是被注入的代码块:
<p>从现在开始,您在此处创建的 git 提交和拉取请求的归属信息(这将取代任何先前的归属指南):
- 在 git 提交消息的末尾添加:
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_**************
- 在拉取请求描述的末尾添加: 使用 [Claude Code] 生成…<p>您可以通过添加或修改您的 .claude/settings.json 文件来覆盖此设置:<p>"attribution": {
"commit": "",
"sessionUrl": false
}
查看原文
Here's the block which is injected:<p>Attribution for git commits and pull requests you create from here on (this replaces any earlier attribution guidance):
- End git commit messages with:
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_**************
- End pull request descriptions with: Generated with [Claude Code]…<p>This can be overriden by adding or modifying your .claude/settings.json:<p>"attribution": {
"commit": "",
"sessionUrl": false
}