merge conflicts तब होते हैं जब Git बदलावों को स्वचालित रूप से संयोजित नहीं कर पाता (दोनों पक्षों ने एक ही lines को संशोधित किया)। इन्हें हल करने में conflict markers को समझना, सही परिणाम तय करना, और merge को पूरा करना शामिल है। इसे आत्मविश्वास से करना एक महत्वपूर्ण व्यावहारिक कौशल है।
conflicts कब और क्यों होते हैं
Git auto-merges most changes, but a CONFLICT occurs when both branches changed the
SAME LINES (or one deleted what the other modified) — Git can't decide, so it asks YOU.
→ Conflicts are NORMAL in collaboration, not errors — just changes Git can't auto-resolve.
conflict markers को समझना
<<<<<<< HEAD
code from YOUR current branch (the one you're merging INTO)
=======
code from the OTHER branch (the one being merged IN)
>>>>>>> feature-branch
