使用 git-reset 回滚代码到指定版本

使用 git-reset 回滚代码到指定版本

当前文章内容迁移中,如有问题,请提交 issues 谢谢~~

特别说明

当前文章内容迁移中,如有问题,请提交 PR 谢谢~~

一. 查看 log history

git log

二. 查看 reflog history

git reflog

三. 选择想要回滚的指定版本

git reset --hard hash-value
参考文章
Prev:
深入理解诶 JVM - 逃逸分析
Next:
单元测试 - Mockito - powermock - 内部私有函数
Contents of this article
Contents of this article