How to perform those actions? (Assuming no conflicts is made)
git reset --hard 2git cherry-pick 5 6 7