title: Merging diff between two git branches and applying it to working copy
body: <p>I have a development repository and a deploy repository. When deploying code, a codebase is checked out of dev, rsync'd to the deploy working copy, and committed to the deploy repository. These repositories are therefore separate, but similar.</p>
  
  <p>On dev, I have a branch. I would like to "apply" that branch to the deploy working copy. In other words, I would like to replay all commits on the branch (excluding merges) to the deploy repository (in one commit, if possible), or to take a diff between branch and master and apply it to the deploy working copy.</p>
  
  <p>I think a similar svn command would be:</p>
  
  <pre><code>svn merge $SVN_REPO/trunk $SVN_REPO/branch/dev_branch deploy_dir
  </code></pre>
  
  <p>... where deploy_dir doesn't even need to be a working copy.</p>
  
  <p>Is this possible?</p>