How do I clone a github project to run locally?

GitGithub

Git Problem Overview


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 localhost so that I can follow the tutorial like in the screencast?

Git Solutions


Solution 1 - Git

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

Solution 2 - Git

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.

Solution 3 - Git

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

$ git clone https://github.com/libgit2/libgit2

Solution 4 - Git

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRedNaxView Question on Stackoverflow
Solution 1 - GitThiloView Answer on Stackoverflow
Solution 2 - GitbstrongView Answer on Stackoverflow
Solution 3 - GitKent AguilarView Answer on Stackoverflow
Solution 4 - GitSaeedView Answer on Stackoverflow