Skip to main content

Download One Github Folder

How to download one GitHub folder?

Kinolien

caution

Work without tokens for the first two downloads. After that, you will need a GitHub token for download. Here github.com how to get the token.

It can make sub-folder/sub-directory of github repository as zip and download it.

Go to kinolien.github.io

tip

It can download even private repo folders

git

git clone <URL> --no-checkout <directory> --depth 1

for example, if I want to download one folder https://github.com/facebook/docusaurus/tree/main/website/src/plugins/featureRequests from docusaurus repo, I run this:

git clone git@github.com:facebook/docusaurus.git --no-checkout website/src/plugins/featureRequests --depth 1

then

cd website/src/plugins/featureRequests
git sparse-checkout init --cone # to fetch only root files
git sparse-checkout set website/src/plugins/featureRequests #
git checkout

from: stackoverflow.com

Don't work Don't work

Go to the downgit.github.io

Put the folder path like:

https://github.com/grpc/grpc/tree/master/examples/python/helloworld

Click the Download button and save the zip-file with the desired GitHub folder.

Other methods: stackoverflow.com