DEV Community

Rushan S J
Rushan S J

Posted on

Single Folder Git clone?

How do you clone a single folder from a repo?

  1. git clone --no-checkout <link>
  2. cd <cloned folder>
  3. git sparse-checkout init --cone
  4. git sparse-checkout set <Folder Name>/
  5. git checkout

Voilà !

Top comments (0)