DEV Community

loading...

Discussion on: Clone just the sub-folder in GIT 🔥

Collapse
waleedtageldeen profile image
Waleed Tageldeen • Edited

To get only the latest n commits not the full history you can use the --depth option with git clone. Check this example

Collapse
insanenaman profile image
Naman Gupta Author

Thanks for pointing out. Yes it's a way and author of this package has also addressed here - github.com/Rich-Harris/degit#wait-...

Forem Open with the Forem app