【IntelliJ Idea】撤销已经PUSH的提交

在 Version Control 的 log 右键,选择要回退到的版本,选择 Reset Current Branch to Here

上边也可以通过命令行完成

git log 查看历史版本id
git reset --soft 想要回退到的版本id

推送

git push origin master --force 强制推送到远程主分支
git push origin v1.10.88.1203 --force 强制推送到远程其他分支

原文地址:https://www.cnblogs.com/yangchongxing/p/15628905.html