I'm trying to utilize git subtree to add another repo into my existing repo. Problem is I don't want all the files from the repo. I only want to clone the files within a specific folder.
So for example, my main repo is like this
/
/public
/server
/books
And the other repo (which I want to clone into the above is)
/
/booksrepo/info.json
/info2.json
/info3.json
settings.json
config.json
If I clone the whole repo, I get everything including the config/settings files. Instead I only want to target the booksrepo
folder. So in the end, I want it to look like
/
/public
/server
/books/info.json
/info2.json
/info3.json
This tutorial https://gist.github.com/SKempin/b7857a6ff6bddb05717cc17a44091202 doesn't seem to mention about picking from only a subfolder. Is there a way to achieve this?
Thanks