2

I download a project source code using git clone.

The project I downloaded contains many subfolder.

I want to know the git path of a given sub folder in order to download only this subfolder using git clone

How to do it?

AlG
  • 14,697
  • 4
  • 41
  • 54
MOHAMED
  • 41,599
  • 58
  • 163
  • 268

1 Answers1

4

You can't. Unlike with SVN, for example, a Git repository is a discrete entity. You can only clone a repository as a whole, not single files or folders of it.

Nevik Rehnel
  • 49,633
  • 6
  • 60
  • 50