Checkpoint Commit
Create a comprehensive git checkpoint commit that stages everything and writes a detailed commit message.
Workflow
- •
Initialize git if needed - Run
git initif not already a git repo. - •
Analyze all changes:
- •
git statusto see tracked and untracked files - •
git diffto see detailed changes - •
git log -5 --onelineto match the repo's commit message style
- •
- •
Stage everything - Use
git add -Ato stage all changes (modified, deleted, and new files). - •
Create a detailed commit message:
- •Subject line (50-72 chars, imperative mood): e.g.
feat: add user authentication,fix: resolve database connection issue - •Body: What changed (key modifications), why it changed (purpose/motivation), important technical details, breaking changes if any
- •Footer: Include co-author attribution per Git Safety Protocol
- •Subject line (50-72 chars, imperative mood): e.g.
- •
Execute the commit following the repo's existing conventions.
Rules
- •Do NOT skip any files - include everything
- •Check
git logfirst to match existing commit conventions - •Make messages descriptive enough for someone reviewing the log to understand what was accomplished