अच्छे commits केंद्रित होते हैं (एक तार्किक बदलाव) और उनके स्पष्ट messages होते हैं जो समझाते हैं कि क्या बदला और क्यों। सुनिर्मित commits और messages प्रोजेक्ट इतिहास को पठनीय, बदलावों को समझने, debugging और सहयोग के लिए उपयोगी बनाते हैं।
अच्छे commit messages
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
