1.首先将本地仓库版本回退到自己想要的版本。 git reset commit_id 2.将回退后的版本强制推送到远程仓库。 git push -f origin master 转载于:https://www.cnblogs.com/luyuefeng/p/8341505.html