git reset HEAD使用
修改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命令行输出
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。