If you want to download a repository from GitHub, all you have to do is to click the “Dowload ZIP” button on the repo’s main page. But what if you do not need the whole repo but only a specific folder with a single sub-project of the repo?
Strangely enough the most convenient way to download a specific folder from a git repo is to use svn. Here’s an example how to dowload the davfs2
package from the GitHub packages
repository:
1 2 |
cd ~/myowrt/custpacks svn checkout https://github.com/openwrt/packages/trunk/net/davfs2 |