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,097
  • 4
  • 41
  • 53
MOHAMED
  • 38,769
  • 51
  • 148
  • 252

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
  • 45,305
  • 6
  • 59
  • 49