git reset --hard HEAD~1
The ending number represents the number of commits to remove.
本文介绍了如何使用git命令`git reset --hard HEAD~1`将版本回滚到上一个提交,包括命令解释和实际应用案例。
git reset --hard HEAD~1
The ending number represents the number of commits to remove.

被折叠的 条评论
为什么被折叠?