Git · Senior · Question 10 of 76
What is the difference between -s ours and -X ours in a merge?
- ✓Correct answer:
-s oursignores the other side;-X oursfavors us on conflicts - 2
-s oursfavors us on conflicts;-X oursignores the other side - 3They are aliases and behave exactly the same
Explanation
The ours strategy records a merge but keeps our tree unchanged, discarding all their changes. The ours option of ort merges normally and only picks our side for conflicting hunks.