经常有时候因为自己的骚操作,比如 git reset HEAD --hard ,或者瞎jb尝试自己不熟的命令导致的各种问题,

或者版本回退了怎么前进到之前的地方等等等等..

 

这时候怎么办呢..

天空一声巨响, git reflog 闪亮登场~~

 

接着另一篇博客的合并提交,假如我现在后悔了,该怎么办??

https://www.cnblogs.com/microcat/p/10282804.html

 

 

现在的log

Git--reflog

 

git reflog 查看操作记录

然后我在这里找到一条之前rebase之后然后在master快速合并dev的操作记录

Git--reflog

Git--reflog

这样胡汉三就回来了..

来看下log

Git--reflog

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2023-02-07
  • 2021-11-11
猜你喜欢
  • 2021-07-30
  • 2022-02-08
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案