Git on the way ,lesson 1

First you need a git account

Then create a git repository

create a project

operation guide:http://help.github.com/create-a-repo/


Then you will get following code:

Global setup:

 Set up git
  git config --global user.name "Fred Fu"
  git config --global user.email [email protected]
      

Next steps:

  mkdir HubbleRetrieval
  cd HubbleRetrieval
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin [email protected]:AlfredFu/HubbleRetrieval.git
  git push -u origin master
      

Existing Git Repo?

  cd existing_git_repo
  git remote add origin [email protected]:AlfredFu/HubbleRetrieval.git
  git push -u origin master
      

Importing a Subversion Repo?

  Check out the guide for step by step instructions.
      

When you're done:

  Continue


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章