$ git subtree add --prefix=subfolder repository_url master --squash
Add a remote repository as a subtree in a subfolder.