Open for hireContact me
Last updated:
Rakesh Potnuru
Author

How to clone a specific folder of a GitHub repository?

Steps to clone a single directory of a GitHub repository:

  • Copy the directory URL.

https://github.com/RakeshPotnuru/Blog/tree/main/config

  • Replace tree/<branch> with `trunk.

https://github.com/RakeshPotnuru/Blog/trunk/config

  • Use this command to clone that directory. (Make sure you have svn installed.)
svn checkout https://github.com/RakeshPotnuru/Blog/trunk/config

LEAVE A COMMENT OR START A DISCUSSION

MORE SNIPPETS

Subscribe to Newsletter

Weekly


  • Never miss an update.
  • Get articles and snippets directly to your inbox.
  • Subscribe to stay connected and avoid getting lost among millions of websites.

Monthly


  • Coming soon...