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:
git hub 使用心得
原文:http://www.cnblogs.com/wang1733965469/p/4456402.html