git 回滚到指定版本 web玩家甲 2025-06-21 2 阅读1分钟 # 1. 查看提交历史 git log --oneline # 2. 假设要回滚到abc123这个commit git reset abc123 # 或 git reset --hard abc123 # 3. 如果需要强制推送到远程 git push origin main --force