[root@666 IT-DOC]# git status -s
?? a.txt
[root@666 IT-DOC]# git add a.txt
[root@666 IT-DOC]# git status -s
A a.txt
[root@666 IT-DOC]# git reset HEAD a.txt
[root@666 IT-DOC]# git status -s
?? a.txt
[root@666 IT-DOC]# git status -s
?? a.txt
[root@666 IT-DOC]# git add a.txt
[root@666 IT-DOC]# git status -s
A a.txt
[root@666 IT-DOC]# git reset HEAD a.txt
[root@666 IT-DOC]# git status -s
?? a.txt
转载于:https://www.cnblogs.com/bass6/p/7286645.html