How to clone just a subdirectory of github

5

Assuming you have a dummy directory in github:

link

And within "Directory" have the subdirectories:

link

link

Is it possible to clone only "sub1" without having to clone the entire "Directory" directory?

    
asked by anonymous 30.06.2018 / 21:20

1 answer

1

In general it does not roll, one of the characteristics of Git is to be 8 or 80. you have to make certain insulation to work in a granular way, but cloning is a fundamental operation that has nothing to do, it has to drop everything. Git is not a solution to all problems, so some techniques are suggested to avoid these deficiencies (plausible, by the way).

but apparently this has changed :) See the comment posted by Felipe up there. At SO you have , but you have to tweak the original so you can do it, it's still not straightforward. I'll give a study to post better here.

    
30.06.2018 / 21:37