Sometimes I want to select a series of commits from another repository. I know two ways to do this.
1.
git checkout myBranch
git cherry-pick begin..end
or
git rebase --onto myBranch begin end
I find the first version easier to remember. However, I read a lot about how throwing cherries is evil compared to merging because it destroys the story a bit. But I still haven't figured out if there is a difference between a cherry picking a range of commits or reloading them with--onto
I tend to think that there should be no difference. Am I mistaken?
source
share