git push -f origin XXX(远程分支名)
重新提交一个新的提交。(优先使用这个方式)
revert
手动revert
删掉远程分支,再推一个本地分支上去。
转载于:https://www.cnblogs.com/stromluo/p/9448152.html