title: How can I manage overlapping repositories in git, including files in the same directory?
body: <p>I have a complex repository where sometimes the logical boundaries between code segments crosses directory boundaries. Sometimes a single file in directory X really needs to go with files in directory Y. </p>
  
  <p>E.g., pretend I have a central repo that looks like this:</p>
  
  <pre><code>a/foo
  a/bar
  b/baz1
  b/baz2
  </code></pre>
  
  <p>...and I want my local repository to end up with <code>a/*</code> and <code>b/baz1</code>, but not <code>b/baz2</code>. The other files should end up in another repository.</p>
  
  <p>(Yes, the long term solution is to move the files, but while I am working on that refactoring, I need to version-control the files appropriately.)</p>
  
  <p>Can I use git to do this?</p>