Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 11 of 14

Re: How can I download a specific folder from a GitHub repo?

@nadiajoyce Well this question is different mine is different, I want to download a specific folder locally not on a remote Git repo I think you misunderstood my question please check it once again.I totally understand that in order to maintain forum organized you have close my question but I request you to open again since my question is different from above question.

Community Manager
Message 12 of 14

Re: How can I download a specific folder from a GitHub repo?

If you look at the solution, it directly answers your question. The new topic you opened isn't necessary and it is correct that people should be directed here.

Copilot Lvl 2
Message 13 of 14

Re: How can I download a specific folder from a GitHub repo?

You can try github-files-fetcher, it is a command line tool which downloads a single folder or file from a GitHub repo.

 

Think a real scenario: you were visiting the following webpage page and wanna download the `async` subdirectory alone.

Selection_021.png

 

With The `github-files-fetcher`, you should first copy the `url` of that page, which is https://github.com/reduxjs/redux/tree/master/examples/async, and then run the command below in command line:

 

fetcher --url=https://github.com/reduxjs/redux/tree/master/examples/async

 

Ground Controller Lvl 2
Message 14 of 14

Re: How can I download a specific folder from a GitHub repo?

For GitHub repos, you can clone any sub-directories of any GitHub repository (at any reference) using https://github.com/HR/github-clone