git 回退代码 参考博文1 参考博文2 需要注意的是,如果你现在有commit1、commit2、commit3 ,你打算回退到commit2,保守的做法是依次 git revert -n commit3 git commit -m "" git push xxx