الـ commits الجيدة هي مركزة على تغيير منطقي واحد برسائل واضحة تشرح ما تم تغييره ولماذا. الـ commits والرسائل المصممة جيداً تجعل سجل المشروع مقروءاً ومفيداً لفهم التغييرات والتصحيح والتعاون.
رسائل commits جيدة
GOOD message structure:
Short summary line (~50 chars, imperative mood, capitalized, no period)
<blank line>
Optional body: explain WHAT and WHY (not how — the code shows how),
wrap at ~72 chars. Reference issues if relevant.
✅ GOOD:
Add user email validation to registration form
Validate email format before submission to prevent invalid
accounts. Fixes #142.
❌ BAD:
"fixed stuff", "update", "asdf", "changes", "wip"
→ vague, uninformative — useless when reviewing history later
