git add后撤销

所有文件

git reset HEAD .

单个文件
git reset HEAD -filename

原文地址:https://www.cnblogs.com/you-jia/p/9284319.html