Using wget to download an entire folder from github

I discovered Wget and this team is awesome.

In my tests, I tried to download the entire folder from the Github repository, but the folder does not load as a folder, the download file is an archive without an extension.

Example:

wget https://github.com/peachananr/onepage-scroll/tree/master/Demo 

Note: I want files in this folder.

Is there a way?

Thanks!

+6
source share
1 answer

The file that wget uploaded is actually an html page, which is the "view" that you see when accessing the URL (which you specified).

The github web page is just an “interface” to git code. To access the code, you need to either access the github link through GIT, or download the various released software versions from the Releases page of one scroll page

However, you can take a look at this: Download a single folder or directory from the GitHub repository

Hope this helps.

+3
source

Source: https://habr.com/ru/post/974010/


All Articles