Skip to content

Instantly share code, notes, and snippets.

@TeamDijon
Created April 19, 2026 11:05
Show Gist options
  • Select an option

  • Save TeamDijon/8523fd5878ce770ebd9af8e29ced1fe1 to your computer and use it in GitHub Desktop.

Select an option

Save TeamDijon/8523fd5878ce770ebd9af8e29ced1fe1 to your computer and use it in GitHub Desktop.
Remove Anthropic fluff from commit messages → .git/hooks/commit-msg
#!/bin/sh
# Strip Anthropic Co-Authored-By trailers and the "Generated with Claude Code" line.
sed -i -e '/<noreply@anthropic\.com>/d' \
-e '/🤖 Generated with \[Claude Code\]/d' "$1"
# Trim trailing blank lines left behind.
sed -i -e :a -e '/^\s*$/{$d;N;ba' -e '}' "$1"
@TeamDijon
Copy link
Copy Markdown
Author

Or just add

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

to .claude/settings.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment