Merge conflicts तब हुन्छ जब Git ले स्वचालित रूपमा परिवर्तनहरू जोड्न सक्दैन (दुबै पक्षले एकै पङ्क्तिहरू परिमार्जन गरेको)। तिनलाई समाधान गर्न 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
