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 Cloning

Cloning on another computer

The video shows cloning two repositories on the same computer. but what if I had two computers? How would I clone my whole project to computer #2?

1 Answer

Sue Dough
Sue Dough
35,800 Points

You can clone it via https and it will ask for username/password. This will only work if 2 factor is disabled.

The most ideal way would be to install git and to copy your private ssh key over to the second computer. I am not sure how you setup but usually the ssh key is located in ~/.ssh and you want the private one ( not .pub ).