学习目标: 日常开发之git版本回滚操作 操作步骤 git log命令查看提交的历史记录,复制版本号信息输入 q 退出git log 查询状态git reset --hard commit的版本号git push -f (强制提交,彻底删除,无历史记录),代码回退到指定的提交版本