git撤销add

git reset HEAD
原文地址:https://www.cnblogs.com/smallredness/p/11205266.html