1、选择左下角,查看git history

2、选择分支,右键点击---选择copy Reversion number

3、菜单栏选择git---选择 reset HEAD ;Reset Type 选择Hard模式,在To Commit中填写 已经拷贝的reversion number, 点击reset

4、Reset type 选择 mixed 模式,再执行一次reset

5、执行 git push -f 命令;如果分支是protected,是拒绝提交的,先改变protected,提交后就OK了 

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐