title: How to split a git repository and follow directory renames?
body: <p>I currently have a big git repository that contains many projects, each one in its own subdirectory. I need to split it into individual repositories, each project in its own repo. </p>
  
  <p>I tried <code>git filter-branch --prune-empty --subdirectory-filter PROJECT master</code></p>
  
  <p>However, many project directories went through several renames in their lives, and <code>git filter-branch</code> does not follow renames, so effectively the extracted repo does not have any history prior to the last rename. </p>
  
  <p>How can I effectively extract a subdirectory from one big git repo, and follow all that directory's renames back into the past?</p>