Closed e-dard closed 8 years ago
ours
is always the leading block, while theirs
is always the trailing one.
Your confusion could stem from the fact that ours
and theirs
might appear swapped during a rebase
. Quote from the git documentation (emphasis mine):
Note that during
git rebase
andgit pull --rebase
, ours and theirs may appear swapped;--ours
gives the version from the branch the changes are rebased onto, while--theirs
gives the version from the branch that holds your work that is being rebased.This is because
rebase
is used in a workflow that treats the history at the remote as the shared canonical one, and treats the work done on the branch you are rebasing as the third-party work to be integrated, and you are temporarily assuming the role of the keeper of the canonical history during the rebase. As the keeper of the canonical history, you need to view the history from the remote asours
(i.e. "our shared canonical history"), while what you did on your side branch astheirs
(i.e. "one contributor’s work on top of it").
@Zeeker aha, yes! So the first time I tried the plugin out I happened to be doing a rebase, and I made the assumption. :+1:
I have the following key bindings setup:
When I have a conflict, e.g.,
and I hit
ctrl+alt+o
I expect my change to be kept, but instead it's resolved to:And the inverse happens when I hit
ctrl+alt+t
. Looks like the commands are the wrong way around?