修改demo1.txt文件

vimdemo1.txt修改hello.php

vimhello.php查看文件状态

gitstatus-s添加到缓存区

gitadd.查看文件状态

gitstatus-s将hello.php从缓存区清除

gitresetHEAD--hello.php查看文件状态

gitstatus-s提交文件

gitcommit-m'修改demo1'查看文件状态

gitstatus-s命令行输出