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

 

posted @ 2017-08-04 18:39  bass  阅读(615)  评论(0)    收藏  举报