Git版本控制——场景二:提交更改

203 阅读1分钟

提交更改

步骤1 - git status
前面我们讲到git status可以查看工作目录相对存储库的改变。

$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   committed.js

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        untracked.