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
 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2021-04-08
  • 2021-11-26
  • 2021-10-18
  • 2022-12-23
  • 2021-06-10
猜你喜欢
  • 2021-11-30
  • 2021-05-30
  • 2021-06-22
相关资源
相似解决方案