git reset xxx 和 git reset xxx --hard git log git reset xxxx :回退到某个版本 不会改变本地其他文件 git reset xxx -hard: 回退到某个版本 改变本地文件 一勤天下无难事。