git checkout test~4 # go back to the revision _before_ the one you want to delete git cherry-pick test~3..test # cherry pick the revisions after the one you want to delete git branch -f test # move test pointer git checkout test # checkout test
在这一点上,你的狗所做的应该从树枝上消失。