Stefan
Stefan

Reputation: 9599

pull a git folder instead of the entire tree

Is it possible to pull/clone only one folder from a git repository instead of of the whole structure?

Upvotes: 4

Views: 162

Answers (2)

user355252
user355252

Reputation:

As said, you can only clone repositories as a whole, and not parts of them. If you need to, you might have put different projects into a single repository. This is good in subversion, but not recommendable in Git. If this is the case, split your repository into multiple repositories (one for each project), and aggregate these repositories in a central one using git submodule.

Upvotes: 3

halfdan
halfdan

Reputation: 34214

No it's not possible. You can only clone a whole repository.

Upvotes: 3

Related Questions