需求:在 git-demo 工作区中,添加一个 hello.txt 的文件,并编写任意内容。完成后,将其文件添加至暂存区中,并提交到本地库中。 实战: 查看状态 git status 创建文件,编辑文件内容 查看状态,状态对比 添加暂存区 git add hello.txt 查看状态,状态对比 提交本地库git commit -m "first commit" hello.txt 7.0 查看状态