1.git checkout --head commitId eg: commitId为版本号 2.git commit -m ‘回退到上一版本’ 3.git push -f 备注:git push提交报错,需要 -f 强制提交