[整理]如何撤销远程的git提交?

确保你在你想要撤销的分支上。

第一步,本地使用 get reset --hard ,切换到特定的commit。
第二部,使用 --force推送到远程分支。

git reset --hard cedc856
git push --force origin master
原文地址:https://www.cnblogs.com/everfight/p/git_reset_remote_commit.html