Susiliejimo konfliktai atsiranda, kai Git negali automatiškai sujungti pakeitimų (abi pusės modifikavo tas pačias eilutes). Jų sprendimas apima konfliktų žymeklių supratimą, teisingojo rezultato pasirinkimą ir susiliejimo užbaigimą. Tai daryti pasitikintai – tai svarbus praktinis įgūdis.
Kada ir kodėl atsiranda konfliktai
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.
Konfliktų žymeklių supratimas
<<<<<<< HEAD
code from YOUR current branch (the one you're merging INTO)
=======
code from the OTHER branch (the one being merged IN)
>>>>>>> feature-branch
