How to download a specific folder/directory from Github
I use this whenever I need to download a specific directory but I'm on a slow connection and the whole repository is too large and takes too long to clone. 😫
Install Gyumeijie/github-files-fetcher as a global package.
npm install -g github-files-fetcherUsage example:
fetcher --url="https://github.com/gatsbyjs/gatsby/tree/master/themes/gatsby-theme-blog/" --out=/Users/eka- Download only the directory specified in
--url. - Download to the directory specified in
--out.
Don’t forget the trailing slash / if you are downloading a subdirectory.
This package is also available as a browser extension if you prefer doing this from the browser.
You could probably run npx github-files-fetcher. Haven't tried it myself.