Download a single directory from a GitHub repo using Subversion

Download a single folder or directory from a GitHub repo using a subversion command: like “$svn checkout”

svnEXAMPLE:

https://github.com/facebook/docusaurus/tree/master/packages/docusaurus-1.x/examples/basics

#Modify the URL for subversion. Replace tree/master with trunk.

$ svn checkout https://github.com/facebook/docusaurus/trunk/packages/docusaurus-1.x/examples/basics