Git · Senior · Question 33 of 76

During git rebase main, what do "ours" and "theirs" refer to?

Explanation

Rebase checks out the base and applies your commits onto it, so from Git's point of view your commits are "theirs". It's a classic source of wrong conflict resolutions.

Further reading

Problem with a question

Git · Senior · question 33

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