title: Pull all commits from a branch, push specified commits to another
body: <p>I have the following branches:</p>
  
  <ul>
  <li><code>master</code></li>
  <li><code>production</code></li>
  </ul>
  
  <p>and the following remote branches:</p>
  
  <ul>
  <li><code>origin/master</code></li>
  <li><code>origin/production</code></li>
  </ul>
  
  <p>I have a script that fetches the <code>origin/master</code> branch and gets the diff of what changed from my last fetch (<code>log -p master..origin/master</code>). Then I merge <code>origin/master</code>.</p>
  
  <p>The commits found are pushed to a code review tool.</p>
  
  <p>I want to push the successful commits – and only them – to the production branch, and then of course to <code>origin/production</code>.</p>
  
  <p>How can I do so?</p>
  
  <p>Also, I have 2 scripts running: the one that fetch from <code>origin/master</code>, push commits details to a database, and merge, and the other that I'm currently writing that will have to push the successful commits. </p>
  
  <p>I'd like to have those 2 scripts running while avoiding race conditions/merge conflict.  Since I only want to work with specified commits, maybe there's a way to get rid of the commits that I don't want?</p>