赞
踩
1、git log查看提交记录,找到需要回退到的commit ID2、回退到之前的版本: git reset --hard commi Id
这个id 是指回到刚提交这个commit Id的状态3、git push -f 远程回退
很重要!!不要忘记第三步,否则会有冲突,而且远程提交不了