title: git: can I subtree merge just a subpath of a repository?
body: <p>I have the remotes Foo and Bar. Foo is a web application that has lots of directories, relevant amongst them is <code>/public</code> which contains assorted files and other directories.</p>
  
  <p>Bar is a set of libraries and whatnot used on the front end, as such, it should go in <code>/public/bar</code> in Foo. Foo has no files there.</p>
  
  <p>That would all be piece of cake with either submodules or subtree merge. However…</p>
  
  <p>Bar's tree is messy, it has all sorts of pre-production files like PSDs and FLAs, and the only really useful part of it is what is inside its <code>/www/tools</code>.</p>
  
  <p>So, what I want to do is merge Bar's <code>/www/tools</code> into Foo's <code>/public/bar</code>, and pretend the rest of Bar's tree doesn't even exist.</p>
  
  <p>Can do?</p>
  
  <p>(I would suppose this is very similar to how you merge from a project that originally merged yours as a subtree. Which I don't know how to do, either.)</p>