What does cloning a GitHub repository mean?

Piscean picture Piscean · Feb 28, 2011 · Viewed 36.5k times · Source

I am trying to integrate Facebook with my app. I read this on developers.facebook.com:

  1. Install XCode
  2. Install Git
  3. Clone the GitHub repository with this command:
    git clone git://github.com/facebook/facebook-ios-sdk.git

I have installed XCode and Git.

What does it mean to clone a GitHub repository and how can I do that?

Answer

PierreL picture PierreL · Feb 28, 2011

To clone a repository means to duplicate and download everything in the repository.

You are on a Mac, so launch Terminal, create a folder and type this command:

git clone git://github.com/facebook/facebook-ios-sdk.git

It will duplicate and download the entire repository.