git hub 使用心得

git中重要的概念:
  • 工作目录(working directory):在工作目录中修改文件,修改后的文件状态是modified,新添加的文件是untracked,通过git add命令将文件保存到staging area中;
  • staging area:保存下次即将提交到git repository中文件的snapshot。文件状态是staged,通过git commit命令提交文件到git repository中;
  • git repository:本地仓库。通过git push命令更新远端服务器仓库,通过git pull命令更新本地仓库。
开始使用git:
  1. 在本机上安装git,http://progit.org/book/
  2. 使用github充当远端服务器,托管本地代码:www.github.com
 
posted @ 2015-04-25 18:59  王国梁  阅读(291)  评论(1编辑  收藏  举报