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

  1. git reset HEAD -- . 撤销所有
  2. git reset HEAD -- filename 撤销特定目标
  3. git rm -cached filepath 将文件从缓存中删除

相关文章: