git checkout --detach topic git cherry-pick feature~2
git cherry-pick feature~1
git cherry-pick feature~0
(update-ref and check out feature)