代码拉取完成,页面将自动刷新
在readme.txt修改后,增加一个新文件,即本文件LIENCE.txt,执行git status,git add readme.txt LIENCE.txt ,git status
$ 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)
modified: readme.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
LIENCE.txt
no changes added to commit (use "git add" and/or "git commit -a")
lcy@lcy-pc MINGW64 /d/only_test_git (master)
$ git add readme.txt LIENCE.txt
lcy@lcy-pc MINGW64 /d/only_test_git (master)
$ git commit -m "测试git暂存区(stage)是怎么工作的"
[master 81b58e7] 测试git暂存区(stage)是怎么工作的
2 files changed, 3 insertions(+)
create mode 100644 LIENCE.txt
lcy@lcy-pc MINGW64 /d/only_test_git (master)
$ git status
On branch master
nothing to commit, working tree clean
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。