# warning: commit message exceeds 72 characters; might be truncated by some tools

- **ID:** `git/commit-message-too-long-warning`
- **Domain:** git
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 95%

## Root Cause

Git's default commit message length limit (72 characters) is exceeded, but this is a warning, not an error.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| git 2.20 | active | — | — |
| git 2.35 | active | — | — |
| git 2.42 | active | — | — |

## Workarounds

1. **Shorten the commit message to under 72 characters, or use a multi-line commit message with a summary line under 50 characters: git commit -m 'Short summary' -m 'Longer body here...'** (95% success)
   ```
   Shorten the commit message to under 72 characters, or use a multi-line commit message with a summary line under 50 characters: git commit -m 'Short summary' -m 'Longer body here...'
   ```
2. **If you must keep the long message, configure git to allow longer lines: git config advice.commitMessageLength false (this suppresses the warning but doesn't guarantee tool compatibility).** (70% success)
   ```
   If you must keep the long message, configure git to allow longer lines: git config advice.commitMessageLength false (this suppresses the warning but doesn't guarantee tool compatibility).
   ```

## Dead Ends

- **** — The warning is a best practice; disabling it may cause issues with tools like email or changelog generators that expect short lines. (40% fail)
- **** — This only suppresses the warning but doesn't fix the underlying issue; long messages may still be truncated by external tools. (30% fail)
