Git远程仓库的回退操作 小小_笑 2023-09-05 100 阅读1分钟 查看提交历史记录:git log 回退到指定版本:git reset --hard commit_id 本地代码就回退到了正确版本。但是,远程仓库还是错误版本。需要使用git push命令强制推送回退后的代码:git push -f