{"id":787,"date":"2016-03-21T18:59:22","date_gmt":"2016-03-21T17:59:22","guid":{"rendered":"http:\/\/hobbykeller.spdns.de\/?p=787"},"modified":"2016-07-31T15:54:58","modified_gmt":"2016-07-31T13:54:58","slug":"downloading-a-specific-folder-from-github","status":"publish","type":"post","link":"https:\/\/hobbykeller.spdns.de\/?p=787","title":{"rendered":"Quick Tip: Download a subdirectory from GitHub repo"},"content":{"rendered":"<p>If you want to download a repository from GitHub, all you have to do is to click the &#8220;Dowload ZIP&#8221; button on the repo&#8217;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?<\/p>\n<p>Strangely enough the most convenient way to <a href=\"http:\/\/stackoverflow.com\/questions\/7106012\/download-a-single-folder-or-directory-from-a-github-repo\" target=\"_blank\">download a specific folder from a git repo<\/a> is to use svn. Here&#8217;s an example how to dowload the <code>davfs2<\/code> package from the GitHub <code>packages<\/code> repository:<\/p>\n<pre class=\"lang:default decode:true\">cd ~\/myowrt\/custpacks\r\nsvn checkout https:\/\/github.com\/openwrt\/packages\/trunk\/net\/davfs2<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to download a repository from GitHub, all you have to do is to click the &#8220;Dowload ZIP&#8221; button on the repo&#8217;s main page. But what if you<span class=\"more-button\"><a href=\"https:\/\/hobbykeller.spdns.de\/?p=787\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Quick Tip: Download a subdirectory from GitHub repo<\/span><\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[155,135,153,154],"class_list":["post-787","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dowload-single-folder","tag-git","tag-github","tag-svn"],"_links":{"self":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=787"}],"version-history":[{"count":5,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/787\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/787\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}