degit icon indicating copy to clipboard operation
degit copied to clipboard

Is it possible to degit only part of the repo?

Open Yagger opened this issue 4 years ago • 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?

Yagger avatar Feb 02 '21 22:02 Yagger

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

nake89 avatar Feb 14 '21 00:02 nake89

@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)

confirmedVincentIp avatar Mar 26 '21 16:03 confirmedVincentIp

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

kfnx avatar May 28 '23 17:05 kfnx