Be Honest When Claude Code Writes Your Software
Claude Code can commit for you. By default, your name will be associated with each commit, and Claude Code includes a βCo-authored-by:β line, and also an Emoji line that says the commit was written by Claude. (You can turn the Emoji off.)
However, if you hand off git commit to Claude Code, itβs possible, maybe even likely, because you want Claude to summarize changes that you did not come up with.
Then be honest and let Claude Code be the author.
Put this in your ~/.claude/settings.json to override the default git-config values:
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"env": {
"GIT_AUTHOR_NAME": "Claude Code",
"GIT_COMMITTER_NAME": "Claude Code",
"GIT_AUTHOR_EMAIL": "noreply@anthropic.com",
"GIT_COMMITTER_EMAIL": "noreply@anthropic.com"
},
"includeCoAuthoredBy": false,
}
With a capable git porcelain like Magit, you can author commits manually, should you decide to descend onto the realm of mere mortals again from your ivory tower of prompting, and use shortcuts to insert a Co-authored-by: line easily.
With that, the git log will be:
aa5abce fix: Mac app not building Christian Tietze
9eb2db4 refactor: remove color accessor train wrecks Claude Code
You can still add your name as Co-authored-by: or Reviewed-by: footer to indicate to your team that you are responsible for the change.