Consider the following tree:
A --- B --- C --- D --- E --- F --- master \ \ B' --- C' --- D' --- topic where (B != B'). I would like to do git rebase --onto master master topic but this generates conflicts. But the situation is simpler: I would like to put the single topic commit onto master.
git checkout master git cherry-pick topic git checkout topic git reset --hard master git checkout master git reset --hard HEAD~1 Isn't it possible to do with a single command the commands above?