title: git pull into a specific directory
body: <p>My situation is the following:</p>
  
  <p>I have a git Repo A which contains a folder referencing material from another 'project' stored in git Repo B. The folder is really just a symbolic link so it doesn't actually exist.</p>
  
  <p>What I would like to do is 'git pull' from Repo B into this folder ONLY and then push back into Repo A preserving as much of the history as possible (incase changes need to go the other way).</p>
  
  <p>I could just manually upload all the files but that would loose all the history. Also I could just have 2 separate repos and a link but I would like to try and merge project B into project A if possible.</p>
  
  <p>Does git have something along the lines of....</p>
  
  <pre><code>git remote add projectb GITURLFORB
  mkdir projectb
  git add projectb &amp;&amp; git commit projectb
  git push origin master
  git pull projectb master --into_folder projectb
  git push origin master
  </code></pre>
  
  <p>Thank you</p>