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 Git Basics Working With Remote Repositories GitHub

Sida Feng
PLUS
Sida Feng
Courses Plus Student 672 Points

clone private repository

So I created a private repository on github. But I am having trouble cloning it to my computer. I 've tried both "clone with SSH" and "clone with HTTPS", and github desktop keeps saying it can't find my repository. And terminal doesn't work either.

1 Answer

git clone https://github.com/yourusername/yourrepository

Just like any other repository. I'm assuming that it's YOUR private repository. This works fine for private repositories I set up last month. One I just set up to test is not working at all. I'm wondering if it's a delay like gh-pages sometimes has before they update?

There are a number of Q&A about cloning private repositories on GitHub, search for "clone private repository" and then select the "issues" link on the right hand side and you can find a lot more discussion on what works and what doesn't.

About 5-10 minutes later I can clone the new private repository just fine now...