title: Pulling just one directory out of a git repo
body: <p>I have a git repo that I want to do a pull from. I do a normal <code>git pull</code> with no problems. The issue is that I want just one certain directory out of the repo. My thinking was that I could use a <code>.gitignore</code> file with a rule like this:</p>
  
  <pre><code>#Ignore all files
  /
  #Except the one I want
  !/temp
  </code></pre>
  
  <p>The problem is this doesn't work. Is that the right way to do it or is there a better way?</p>