Merge conflicts jseħħu meta Git ma jistax awtomatikament jgħaqqad il-bidliet (iż-żewġ naħat bidlu l-istess linji). Is-solviment tagħhom jinvolvi l-għarfien tal-conflict markers, iddeċiżjoni tar-riżultat korrrett, u l-kampliment tal-merge. Li tagħmel dan b'kunfidenza hija ħila pratika importanti. ## Meta u għaliex jseħħu conflicts text 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. ## Li tifhem il-conflict markers ```text
<<<<<<< HEAD
code from YOUR current branch (the one you're merging INTO)
code from the OTHER branch (the one being merged IN)
feature-branch text → <<<<<<< to ======= : your side (HEAD) → ======= to >>>>>>> : their side → You edit to the CORRECT final result (one side, the other, or a COMBINATION), then REMOVE all the markers. bash git status # see which files have conflicts
