what does this mean clone the GitHub repository?

2020-05-18 16:59发布

I am trying to use facebook with my app. I read this on developer.facebook.com

Install XCode

Install Git

Clone the GitHub repository:
git clone git://github.com/facebook/facebook-ios-sdk.git

i have installed XCode and Git. What does it mean to Clone the GitHub repository:
git clone git://github.com/facebook/facebook-ios-sdk.git
and how can i do that.

6条回答
Rolldiameter
2楼-- · 2020-05-18 17:04

Cloning basically means you want to get a local copy of the code present in the repository. After cloning you can then do whatever changes you like in the code and then you can pull the changes back to the repository

查看更多
Summer. ? 凉城
3楼-- · 2020-05-18 17:06

Cloning a git repository means that you create a local copy of the code provided by developer. You can simply do it with a command line:

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

and you'll have the code in the facebook-ios-sdk directory.

查看更多
做自己的国王
4楼-- · 2020-05-18 17:16

Cloning a repository means that you're downloading a copy of the source code from source control. To use the iOS SDK you have to download the code from GitHub (ie- clone the iOS SDK repository).

Type

git clone git://github.com/facebook/facebook-ios-sdk.git [path to where you want to save sdk]

from a shell / command prompt.

查看更多
Deceive 欺骗
5楼-- · 2020-05-18 17:19

clone the repo

Cloning = means copying

Repo = is short form of Repository which is the complete files of the project

Create a folder, Open terminal and take the path into that folder where you want to save the repo, and then run this command

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

This command will download all the files to that folder

Welcome in Advance

查看更多
Viruses.
6楼-- · 2020-05-18 17:22

Cloning a git repository is basically downloading a code base to your own machine, so you can use, edit... this code base.

For doing it is as easy as creating a folder where you want to store this code, and then from the terminal execute from this folder:

git clone git://github.com/facebook/facebook-ios-sdk.git .
查看更多
放我归山
7楼-- · 2020-05-18 17:26

To clone a repository means that you will download the whole code of the repository.

Obviously, your are on a Mac, so launch your Terminal, create a folder and type

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

you will download the code.

查看更多
登录 后发表回答