How do I clone a github project to run locally?

前端 未结 4 1539
面向向阳花
面向向阳花 2020-12-13 01:33

I am trying to follow this railscast tutorial for authlogic - and it points to the source here -

I have git installed - how do I replicate the source onto my localh

相关标签:
4条回答
  • 2020-12-13 01:50
    git clone git://github.com/ryanb/railscasts-episodes.git
    
    0 讨论(0)
  • 2020-12-13 01:53

    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.

    0 讨论(0)
  • 2020-12-13 01:58

    I use @Thiho answer but i get this error:

    'git' is not recognized as an internal or external command

    For solving that i use this steps:

    I add the following paths to PATH:

    • C:\Program Files\Git\bin\

    • C:\Program Files\Git\cmd\

    In windows 7:

    1. Right-click "Computer" on the Desktop or Start Menu.
    2. Select "Properties".
    3. On the very far left, click the "Advanced system settings" link.
    4. Click the "Environment Variables" button at the bottom.
    5. Double-click the "Path" entry under "System variables".
    6. At the end of "Variable value", insert a ; if there is not already one, and then C:\Program Files\Git\bin\;C:\Program Files\Git\cmd. Do not put a space between ; and the entry.

    Finally close and re-open your console.

    0 讨论(0)
  • 2020-12-13 02:01

    You clone a repository with git clone [url]. Like so,

    $ git clone https://github.com/libgit2/libgit2
    
    0 讨论(0)
提交回复
热议问题