我需要查看几周前我提交的代码,例如当我执行以下操作:
> git log --oneline -10
b45e80d ten
711aa9c nine
166dbfa eight
26abb54 seven
ddd6bb6 siz
54430c3 five
ca2d76f four
81ccc8c three
d362fbc two
7d43aba one
我需要将我的网站暂时恢复到提交81ccc8c three
之后的状态。
我该怎么做?
很幸运,在尝试之前我已经将代码库推送到了Bitbucket。
git revert 81ccc8c
我的文件没有在项目文件夹中更新,但是当我执行git status
时显示了一堆更改,并且不允许我回滚到任何其他提交。
我该怎么办,只需回到b45e80d ten
吗?