回退到上个版本:git reset --hard HEAD^ 回退到某个版本: git reset --hard commit id 比如(git reset --hard 1049a)git reflog 查询操作日志,便于在版本回退时,查询commit id