Git Commit Workflow
Follow these steps to create a high-quality commit:
1. Review Changes
- Use
git_statusto see what files have changed - Use
git_diffto review the actual changes - Ensure you understand what's being committed
2. Write Commit Message
Create a commit message that:
- Starts with a concise summary (50 chars or less)
- Uses imperative mood ("Add feature" not "Added feature")
- Includes details in the body if needed
- References any relevant issue numbers
3. Stage and Commit
- Stage only the relevant files (avoid staging unrelated changes)
- Use
run_shellto execute:git add <files> - Use
run_shellto execute:git commit -m "Your message"
4. Verify
- Use
git_logto confirm the commit was created correctly - Use
git_diffwith staged flag to ensure nothing unexpected was committed
Format Example
Add user authentication feature
- Implement JWT token generation
- Add login/logout endpoints
- Update user model with password hashing
Fixes #123
Converted and distributed by TomeVault — claim your Tome and manage your conversions.