场景:
不小心commit了一个不应该commit的修改,但是还没有push,想撤销那个commit
命令:
a)git log
b)git reset --hard commit_id
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3