English 中文(简体)
How do I clone a github project to run locally?
原标题:
  • 时间:2009-12-09 07:05:44
  •  标签:
  • git
  • github

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 FilesGitin

  • C:Program FilesGitcmd

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 FilesGitin;C:Program FilesGitcmd. Do not put a space between ; and the entry.

Finally close and re-open your console.





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签