如何撤消 git 还原并返回到该还原状态之前?
How to undo a git revert and go back to before that revert state?
我想进入我提交的某个阶段。我 git revert 3a3a32
提交但实际上想回去。撤消还原后如何返回到该提交?
检查 git reflog
命令。
它显示您最近更改的列表。在 git revert
之前找到位置并执行 git checkout HEAD@{x}
其中 x
是从 git reflog
返回的位置
我想进入我提交的某个阶段。我 git revert 3a3a32
提交但实际上想回去。撤消还原后如何返回到该提交?
检查 git reflog
命令。
它显示您最近更改的列表。在 git revert
之前找到位置并执行 git checkout HEAD@{x}
其中 x
是从 git reflog