title: How can I move a single directory from a git repository to a new repository whilst maintaining the history?
body: <p>I have inherited a git repository containing multiple projects in separate directories. I'd like to split the repository into new individual repositories, one for each project and then have the master repository contain the projects as submodules. I'd like to do all this whilst maintaining the revision history of the individual projects if possible.</p>
  
  <p>I could clone the repository for each project and remove all the other projects each time, but it there a better way to avoid having the cloned history in each new project repository?</p>