I have two branches:
- master
- tmp
tmp
branch is detached
I need to put tmp
branch on top of master
with resolving conflicts in priority of tmp
When I do
git checkout tmp
git rebase --strategy=recursive -X theirs master
I got error First, rewinding head to replay your work on top of it...
fatal: Could not parse object '0a722ac51071ecb4d00b1ef45384aac227b942a0^'
Unknown exit code (128) from command: git-merge-recursive 0a722ac51071ecb4d00b1ef45384aac227b942a0^ -- HEAD 0a722ac51071ecb4d00b1ef45384aac227b942a0
When I do
git checkout tmp
git cherry-pick --strategy=recursive -X theirs 0a722ac..384144a
Works fine
What the difference or how can I do the same with rebase ?