Git · Senior · Question 32 of 76

How do you get exactly "their" version of a conflicted file during a merge?

Explanation

--ours/--theirs pick a side from the index stages; then git add the file. Beware: during a rebase "ours" is the branch you're rebasing onto, so the meanings swap.

Further reading

Problem with a question

Git · Senior · question 32

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz