07.更新文件并提交
实验
# 查看仓库状态
$ 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: test.txt
# 暂存文件
$ git add test.txt
# 提交更改
$ git commit -m "Added abc to the test.txt"
[master d7f681f] Added abc to the test.txt
1 file changed, 1 insertion(+)git add重复操作?
git add重复操作?跳过使用暂存区域
Last updated