I'm looking for the "moral equivalents" of
% git stash pop --theirs
and
% git stash apply --theirs
...where the hypothetical1 --theirs
flag stands for: "whenever a merge is required, always accept the stashed version".
What's the simplest way to achieve the same effect?
Also, for the sake of completeness (although I've never needed it), I'd be interested in knowing how to achieve the equivalent of
% git stash pop --ours
% git stash apply --ours
1 Curiously, git
has no objection to the --theirs
flag shown above, though it is not documented in the man page for git-stash
, so I don't know what it's supposed to do, if anything. Whatever this is, it does not resemble the description of my "hypothetical" --theirs
flag above.