Cloning a github project

When you first start on a new web project amongst a group of people someone is likely to create a github project. Rather than then all individually creating a new project on your machine you can do the following…

1) Browse to your sites folder in Terminal. We’ll create a new folder for this new project in the next step.

2) use the command git clone git@github.com:whatever folder-name to not only clone the existing github repo, but also to create the folder you want it in

3) cd folder-name to navigate to that folder

4) git add remote remote-name git@github.com:whatever to add a new remote

And you’re done.

As an added option, if you have already created the folder you would like then you can replace 2) above with navigating to that folder, then…

git clone git@github.com:whatever . note the . character to define ‘current folder’