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 clone git://github.com/ryanb/railscasts-episodes.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.
You clone a repository with git clone [url]. Like so,
$ git clone https://github.com/libgit2/libgit2
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:
- Right-click "Computer" on the Desktop or Start Menu.
- Select "Properties".
- On the very far left, click the "Advanced system settings" link.
- Click the "Environment Variables" button at the bottom.
- Double-click the "Path" entry under "System variables".
- 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.
精彩评论