Tell HN: Git hook to keep LLM signatures out of your commit history
I’m using a git hook to prevent any of that from reaching my commits instead of relying on LLMs.
#!/bin/sh
if grep -qi "co-authored-by" "$1"; then
echo "error: commit message contains 'Co-authored-by'. Commit rejected." >&2
exit 1
fi