title: Cloning subtree/subdirectory of git repo
body: <p>I have a git repo on Github, looks like so:</p>
  
  <pre><code>.git/
  assets/
    tools/
      a.sh
      b.sh
      c.sh
  </code></pre>
  
  <p>of course the .git folder is not in version control, but you get the idea. And I want to copy the tools/*.sh to a local directory, at this path:</p>
  
  <pre><code>./scripts/git/tools
  </code></pre>
  
  <p>My current directory is a git repo that shares a totally different history than the remote git repo, I just want to copy some files from the remote, I don't want to merge anything.</p>
  
  <p>I figure I could do something like this:</p>
  
  <pre><code>git clone --path assets/tools/*.sh "$remote_repo"  ./scripts/git/tools
  </code></pre>
  
  <p>but that command is not real, is there some command I can use to do this?</p>
  
  <p>the only other way I can think of doing it, is cloning the whole repo to some temp directory and then copying the files over, but that's not as much fun.</p>