My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How to download a particulfile/folder from a github repository

Adedamola Adedapo's photo
Adedamola Adedapo
·Sep 26, 2021·

1 min read

This is a post on how to download a single file or folder from a github repository using subversion.

Step 1: Install subversion.

$ sudo install subversion

Step 2: Download the file or folder.

$ svn export <repo>/trunk/<folder>

repo: is the github url to be cloned from.

folder: is the name of the folder or file to be downloaded.

For example:

$ svn export https://github.com/cirosantilli/test-git-partial-clone.git/trunk/d1

End.