Rich-Harris / degit

Straightforward project scaffolding
MIT License
7.06k stars 246 forks source link

Is it possible to degit only part of the repo? #256

Open Yagger opened 3 years ago

Yagger commented 3 years ago

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?

nake89 commented 3 years ago

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

confirmedVincentIp commented 3 years ago

@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 1 year ago

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