On branch masterNo commits yetUntracked files:(use "git add <file>..." to include in what will be committed)
初始暂存文件到暂存区
gitadd.
git status
On branch masterNo commits yetChanges to be committed:(use "git rm --cached <file>..." to unstage)
初始提交文件到本地仓库
git commit -m 初始提交
git status
On branch master
nothing to commit, working tree clean
修改文件
git status
On branch master
Changes not staged for commit:(use "git add <file>..." to update what will be committed)(use "git restore <file>..." to discard changes in working directory)
第二次暂存文件到暂存区
gitadd.
git status
On branch master
Changes to be committed:(use "git restore --staged <file>..." to unstage)
第二次提交文件到本地仓库
git commit -m 第二次提交
git status
On branch master
nothing to commit, working tree clean