Created
April 19, 2026 11:05
-
-
Save TeamDijon/8523fd5878ce770ebd9af8e29ced1fe1 to your computer and use it in GitHub Desktop.
Remove Anthropic fluff from commit messages → .git/hooks/commit-msg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or just add
to
.claude/settings.json