1.首先切换到你要回退的分支,右键 show log ,找到你要回退的那个 Commit ,右键 - Reset this to this vision
2.在弹出的对话框中选择 reset Type 为 hard 。
3.在 PUSH 的时候,Options 中选择 force known changes。
4 push 代码 ,之后就可以覆盖掉之前的那个提交。