方法一

采用git reset结合git push -f的方法。

 

方法二

采用git revert的方法。

 

git revert HEAD