I'm creating a monorepo from some existing repos, and I want to preserve the commit history.
This answer here tells us that the git subtree command is good for this, and it works fine if we want to import the old git repos as is to the new structure. 
However, the I have one project I'm important that looks like this:
/
  server/
    index.js
    package.json
  src/
  package.json 
Here, I want to import just the server folder, and retain the commit history on it. 
I could just import the whole folder, delete everthing I don't need, and then shift everthing in server up one folder, but I'm worried about destroying the commit history. 
Is there a way to import just a sub directory?
 
    