Skip to content

Build local repo for engine

taiwen edited this page Jul 15, 2011 · 1 revision

Global setup:

  1. Download and install Git client: Download client for Windows from: http://code.google.com/p/msysgit/
  2. Configure (in git bash):
  • git config --global user.name "{Your Name}"
  • git config --global user.email {YourEmailAccountForGithub}

Pull a repo as developer (in git bash):

  • git clone https://{YouGithuabAccount}@github.com/xoops/{RepoName}

Pull a repo as Read-Only (in git bash):

  • git clone git://github.com/xoops/{RepoName}

Initialize a repo on github server as a developer

(skip this step if your are not a developer for the repo):

  1. mkdir {RepoName}
  2. cd {RepoName}
  3. git init
  4. touch README
  5. git add README
  6. git commit -m '{Your commit message}'
  7. git remote add origin https://{YouGithuabAccount}@github.com/xoops/{RepoName}
  8. git push -u origin master

Note: Change the content in {} to your account/repo respectively