Git & GitHub

Merge strategies (ours, theirs, octopus)

Në shqip: Strategjitë e bashkimit

ShpjegimiSQ

Git ka disa strategji bashkimi: „ort“ (parazgjedhja), „octopus“ (shumë degë njëherësh). Me -X ours ose -X theirs i thua kë të zgjedhë automatikisht te konfliktet — përdore me kujdes.

EnglishEN

Git has several merge strategies: “ort” (the default), “octopus” (many branches at once). With -X ours or -X theirs you tell it whose side to pick automatically in conflicts — use with care.

Si ta mendosh

Si rregullat se kush ka fjalën e fundit kur dy redaktorë s'bien dakord.

Lexoje në anglisht

Like the rules on who has the final say when two editors disagree.

Shembull kodibash

git merge -X theirs dega-e-re
git checkout --ours skedari.txt

Terma të lidhur