title: How do I merge a sub directory in Git?
body: <p>Is it possible to merge only the changes for a sub-directory from a local Git branch to a remote Git branch or is it &quot;all or nothing&quot;?</p>
  <p>For example, I have:</p>
  <pre><code>branch-a
   - content-1
   - dir-1
     - content-2
  </code></pre>
  <p>and</p>
  <pre><code>branch-b
   - content-1
   - dir-1
     - `content-2
  </code></pre>
  <p>I only want to merge the contents of branch-a dir-1 with the contents of branch-b dir-1.</p>