download specific folder from git 1

download specific folder from git

npx degit https://github.com/USER/REPO/path/to/folder

Here is what the above code is Doing:
1. npx is a tool that comes with npm 5.2+ and higher, as a version of npm
that’s installed locally to your project when you create it.
2. degit is a tool that clones a git repository, but only the files you need.
It’s a great way to get started with a project without having to worry
about the history of the project.
3. https://github.com/USER/REPO/path/to/folder is the URL to the folder you
want to copy.

Similar Posts