Back to Articles
Tutorials

Disable Claude Code Commit/PR Attribution (Clean Git History)

January 12, 2026
2 min read

If you ask Claude Code to commit and push changes to GitHub in a prompt, it will add itself as a co-author of that commit.

This happens if you put something like this in a prompt:

If you don’t want Claude showing up as a co-author on Git commits or adding itself in pull request descriptions, add this JSON to your Claude configuration:

{
  "attribution": {
    "commit": "",
    "pr": ""
  }
}

This setting tells Claude Code not to include any attribution text in:

  • Git commits (no “Co-Authored-By: Claude…” line)
  • Pull request descriptions (no AI attribution footer)

Where to Put This JSON

Claude Code supports multiple JSON settings files that control its behavior. You can add the configuration above in one of the following:

  1. Local project override: .claude/settings.local.json (applies only to your local copy and is typically ignored by Git)
  2. Project-wide settings: .claude/settings.json (checked into version control and shared with your team)
  3. Global user settings: ~/.claude/settings.json (applies across all your projects on your machine)

After saving the file in the correct location, restart Claude Code before re-running your commit/push prompt.

Share this article

Comments

Join the conversation! Sign in to leave a comment.

No comments yet. Be the first to share your thoughts!

Povilas Korop

Get Weekly AI Coding News

Sent every Wednesday. No spam, ever. Unsubscribe anytime.