1.回退代码到某个版本。 1.查看历史提交记录 git log 2.回退到某次提交记录(回退到abcx123这次提交) git reset --hard abcx123 3.将回退强制提交 git push -f