Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

ailsa wang
PLUS
ailsa wang
Courses Plus Student 1,791 Points

how to clone part of git repo? here is what i googled:mkdir repo1 cd myrepo1 git init git config but not working!

i want to clone part of a large git repo. on stackoverflow, some say this would do: mkdir repo1 cd myrepo1 git init git config core.sparseCheckout true git remote add -f origin /url/of/repo1 echo module1/*> .git/info/sparse-checkout git fetch git checkout master however, i tried several times. this doesn't help. kindly help me!

1 Answer

Checkout this question on Stack Overflow: Download a single folder or directory from a GitHub repo

These two tools linked in that question might be of use to you:

Alexander Nikiforov, me either, until I looked for an answer to this question! :)