git reset 概括 git 的三种状态 git reset git reset --soft git reset --mixed git reset --hard 概括 这篇博客分析了git reset的用法,我将从以下几个命令介绍它: git reset --soft git reset --mixed git reset --hard git 的三种状态 一个git项目中的文件会存在三种状态: 处于工作区:也就是我们当前正在写的,但是未使用add添加到暂存区的文件 处于暂存区:使用add添加后的工作区文件 处于仓库:使用commit提交后的暂存区文件