DEV Community

Rushan S J
Rushan S J

Posted on

2 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more