Interview Prep/Git & GitHub/Merge, rebase and cherry-pick

What are merge strategies and options such as `ort`, `ours` and `-X theirs`?

IntermediateConceptMerge, rebase and cherry-pick
Answer

ort is the default strategy (since 2.34, replacing recursive) and handles renames well and quickly. -X ours and -X theirs are options that resolve only conflicting hunks in favour of one side. The ours strategy (-s ours) is totally different: it records a merge commit but keeps your tree unchanged, discarding the other branch's content.

git merge -X theirs feature
git merge -s ours obsolete-branch
All Git & GitHub questions Roadmap: Git & GitHub

More on Merge, rebase and cherry-pick