Rich-Harris/degit

Is it possible to degit only part of the repo?

Yagger opened this issue · 3 comments

In the case of a multi-app repository, it is useful to degit only a certain subdirectory from that repository. Is there current/planned feature to do so?

This is already implemented and documented here: https://github.com/Rich-Harris/degit#specify-a-subdirectory

@nake89

Unless I am missing something, this is not possible using git?
ie degit Rich-Harris/degit/test --mode=git will get the whole repo (not just the specified subdirectory)

kfnx commented

I'm also getting the whole repo (not just the specified subdirectory) while using --mode=git.
Would love to get the specific subdirectory. Cos if I need the repo I can just use git submodule