title: How should I use git rebase to remove duplicate commits introduced by git cherry-pick?
body: <p>I'm a bit confused by <code>git rebase</code>.</p>
  
  <p>I have a <code>develop</code> branch and a <code>staging</code> branch. I've merged <code>develop</code> into <code>staging</code></p>
  
  <pre><code>git checkout staging
  git merge develop
  </code></pre>
  
  <p>But there are a bunch of duplicate commits because of cherry picks; I want to remove the duplicates. Should I do the following?</p>
  
  <pre><code>git checkout staging
  git rebase develop
  </code></pre>
  
  <p>UPDATE: The <code>git merge develop</code> is local, so I haven't pushed it yet</p>