git checkout branchB git cherry-pick commitid4..commitid1