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

Mark Pecota
Mark Pecota
4,541 Points

Cloning a github repository

I am able to clone a repository easily from github.com using the command:

git clone <github clone URL>

The project files are copied onto my local computer, but a repository is not created. Do I have to run git init to create a new repository locally?

How do I have the two repositories communicate with one another?

2 Answers

Go to the directory where you cloned the project on your hard drive. Do you see a git folder in that directory? You should be able to get started pulling and fetching and whatnot to master after you clone a repo.

Mark Pecota
Mark Pecota
4,541 Points

I wasn't deep enough in the directories :/ After I navigated one directory deeper I had the git folder. Thanks for the help.

just fire the terminal and navagiate to the repo you had clone and then type command ls -la which will show the hidden files where u can see .git folder