Commit cc70035
docs: add Git workflow guidance to CLAUDE.md to prevent sync issues
## Problem
Pre-commit hooks were modifying files AFTER commit creation, causing
mismatches between local commit and working directory. This led to
push rejections and forced rebases.
## Solution
Added mandatory workflow to CLAUDE.md:
1. Stage changes
2. Run pre-commit checks manually BEFORE commit
3. Stage any fixes
4. Commit and push atomically
## Benefits
- Eliminates hook-related sync issues
- Prevents push rejections from formatting fixes
- Atomic commit-push reduces race condition window
- Provides clear process for future development
This should prevent the sync issues experienced in recent commits.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 6f3339e commit cc70035
1 file changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
22 | 52 | | |
23 | 53 | | |
24 | 54 | | |
| |||
0 commit comments