How do I clone a github project to run locally?

http://stackoverflow.com/questions/1872113/how-do-i-clone-a-github-project-to-run-locally

git clone git://github.com/ryanb/railscasts-episodes.git

If you want to clone a particular branch instead:

git clone git://github.com/ryanb/railscasts-episodes.git -b branch_name

To clone a repository and place it in a specified directory use “git clone [url] [directory]”. For example

git clone https://github.com/ryanb/railscasts-episodes.git Rails

will create a directory named “Rails” and place it in the new directory. Click here for more information.

从github下载某个git库的4种方法

你可能感兴趣的:(分享)