title: Does picking a range of commits with cherry-pick or rebase --onto end up with the same result?
body: <p>I sometimes want to pick a range of commits from a different repository. I know two ways to do that.</p>
  
  <p>1.</p>
  
  <pre><code>git checkout myBranch
  git cherry-pick begin..end
  </code></pre>
  
  <p>or</p>
  
  <ol start="2">
  <li><code>git rebase --onto myBranch begin end</code></li>
  </ol>
  
  <p>I find the first version easier to remember. However, I read a lot about how cherry-picking is evil compared to merging because it kinda breaks the history. But what I haven't figured out yet is if there is a difference between cherry-picking a range of commits or rebasing them with <code>--onto</code></p>
  
  <p>I tend to think that there shouldn't be a difference. Am I mistaken?</p>