title: How to apply git diff --binary patches without git installed?
body: <p>I use to git diff to generate patches that can be applied to remote server to update a project.</p>
  
  <p>Locally, I run:</p>
  
  <pre><code>git diff --no-prefix HEAD~1 HEAD &gt; example.patch
  </code></pre>
  
  <p>Upload example.patch to remote server and run:</p>
  
  <pre><code>patch --dry-run -p0 &lt; example.patch
  </code></pre>
  
  <p>If dry-run is successful, I run:</p>
  
  <pre><code>patch -p0 &lt; example.patch
  </code></pre>
  
  <p>This works well, except when diff includes binary files. Today, I found that I can use:</p>
  
  <pre><code>git diff --no-prefix --binary HEAD~1 HEAD &gt; example.patch
  </code></pre>
  
  <p>The problem is that the generated patch file can not be applied using patch.</p>
  
  <p>How can I apply these binary patch files without having git installed the server?</p>
  
  <p>I would like to maintain ability to use dry-run.</p>
  
  <p>Thank you</p>