git add:把内容写入 Index | Git

本章覆盖:`git add file`;`git add .`;`git add -A`;stage new file;stage modification;stage deletion;index stores content snapshot;add 不是“把文件上传到 Git”;多次 add 更新 index 中的版本;只提交一部分文件。

本章知识点

  • git add file
  • git add .
  • git add -A
  • stage new file
  • stage modification
  • stage deletion
  • index stores content snapshot
  • add 不是“把文件上传到 Git”
  • 多次 add 更新 index 中的版本
  • 只提交一部分文件