1.回滚:
git log :查看log日志 commit_id;
git reset –-soft <commit_id>:回退到某个版本,只回退了commit的信息,不会恢复到index file一级。如果还要提交,直接commit即可 git reset –-hard <commit_id>:彻底回退到某个版本,本地的源码也会变为上一个版本的内容
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3