Saturday, January 7, 2012

Github初始化

Global setup:

 Set up git
  git config --global user.name "Your Name"
  git config --global user.email your@emial.com
      

Next steps:

  mkdir testDrivenJavaScript
  cd testDrivenJavaScript
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:mindevolution/testDrivenJavaScript.git
  git push -u origin master
      

Existing Git Repo?

  cd existing_git_repo
  git remote add origin git@github.com:mindevolution/testDrivenJavaScript.git
  git push -u origin master
      

No comments:

Post a Comment