vim demo1.txt
vim hello.php
git status -s
git add .
git status -s
git reset HEAD -- hello.php
git status -s
git commit -m ‘修改demo1‘
git status -s
本文出自 “素颜” 博客,请务必保留此出处http://suyanzhu.blog.51cto.com/8050189/1907146
原文:http://suyanzhu.blog.51cto.com/8050189/1907146