The output tells you what you need to do.
(输出告诉您您需要做什么。)
git reset HEAD cc.properties
etc. (git reset HEAD cc.properties
等)
This will unstage the rm operation.
(这将取消rm操作的阶段。)
After that, running a git status
again will tell you that you need to do a git checkout -- cc.properties
to get the file back. (之后,再次运行git status
将告诉您您需要执行git checkout -- cc.properties
来取回文件。)
Update: I have this in my config file
(更新:我的配置文件中有这个)
$ git config alias.unstage
reset HEAD
which I usually use to unstage stuff.
(我通常用它来撤消工作。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…