title: Export subtree in Git with history
body: <p>I have a folder in my Git repository that I'd like to move out in to its own repository. Is it possible to move the history of that folder along with the folder?</p>
  
  <p>I've previously been doing just a <code>git rm -r --cached subfolder/</code> and then <code>git init</code> on the subfolder. However, the history is not imported in to the new repository.</p>