git add 不必要的文件 如何撤回

[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