# Download only part of a repository in github

DevFeed: [Download only part of a repository in github](<https://devfeed.tech/articles/download-only-part-of-a-repository-in-github-21518.md>)

Original publisher: [Read original article](<http://lifepluslinux.blogspot.com/2015/09/download-only-part-of-repository-in.html>)

Author: Suresh Alse (noreply@blogger.com)

Published: 2015-09-06T19:09:00Z

Content type: tutorial

Language: en

Sources: [Life Plus Linux](<https://devfeed.tech/sources/life-plus-linux.md>)

Topics: [GitHub](<https://devfeed.tech/topics/github.md>), [GitHub API](<https://devfeed.tech/topics/github-api.md>), [Bootstrap](<https://devfeed.tech/topics/bootstrap.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [download](<https://devfeed.tech/tags/download.md>), [github](<https://devfeed.tech/tags/github.md>), [linux](<https://devfeed.tech/tags/linux.md>), [project](<https://devfeed.tech/tags/project.md>), [repo](<https://devfeed.tech/tags/repo.md>)

## AI overview

A tutorial explains how to download only part of a GitHub repository instead of cloning the entire project. It presents svn export as a straightforward approach, including an example for downloading the docs directory from the Bootstrap repository and saving it under a different name.

## Source excerpt

Sometimes you would want to download only a part of a repository in Github but you don't want to download / clone the entire repository, specially when the repo is huge or has too many other things that you are not interested in. There are many ways to do this. For example you can do a shallow clone, or you can use Github API (there is a limit on number of requests per hour)..etc. However, none of them are simple and straightforward. I recently found out that Github supports svn to some extent. So I tried the age old svn export to download a part of the project I was interested in. And it worked. svn export https://github.com/<username>/<project name>/trunk/<folder path> For example: If you want to download only docs from Bootstrap repository, svn export https://github.com/twbs/bootstrap/trunk/docs Now, suppose you want to download it with a different name, svn export https://github.com/twbs/bootstrap/trunk/docs bootstrap-docs