git reset --hard 版本号 重置版本库、暂存区、工作区的所有内容。 git reset 版本号 重置版本库、暂存区的所有内容。 git reset --soft 版本号 重置版本库的所有内容。