اچھے commits مرکوز ہوتے ہیں (ایک منطقی تبدیلی) اور واضح پیغامات کے ساتھ جو یہ وضاحت کرتے ہیں کہ کیا بدلا گیا اور کیوں۔ اچھی طریقے سے تیار کردہ commits اور پیغامات پروجیکٹ کی تاریخ کو قابلِ فہم، تبدیلیوں کو سمجھنے، ڈیبگنگ اور تعاون کے لیے مفید بناتے ہیں۔
اچھے commit پیغامات
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
