存储在git暂存区的内容怎么撤销

  1. git reset HEAD -- . 撤销所有
  2. git reset HEAD -- filename 撤销特定目标
  3. git rm -cached filepath 将文件从缓存中删除
原文地址:https://www.cnblogs.com/wszzj/p/14135976.html