How do I clone a github project to run locally?

来源:互联网 发布:腾讯微信大数据 编辑:程序博客网 时间:2024/06/05 15:18

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种方法