Git 交互式变基 - 有什么方法可以指示 git 解决保留 HEAD 版本的冲突?

Git interactive rebase - any way to instruct git to resolve conflicts keeping the HEAD version?

已尝试 variations 次,共 git rebase -i -Xours master 次,但仍然显示冲突,我必须手动解决它们。另外,在发生冲突提交的情况下,非冲突更改会发生什么情况并不完全清楚 - 是否保留了这些更改?

用例:temp rebase master 上的一些旧分支以查看这些分支中是否有任何此类更改(根本不在 master 中),但保留 master 中的代码版本以进行冲突更改(可怕,可怕冲突)

$ git --version
git version 2.6.1.windows.1
git ls-files -u | cut -f2- | uniq | git checkout-index --stdin --stage=all \
| while read base ours theirs path; do
        git merge-file --ours \
                -L "$path" -L o/"$path" -L b/"$path" \
                -- $ours $base $theirs
        mv $ours "$path"
        rm $base $theirs
done