1.在.git/logs/refs/heads/下有所有分支的操作记录及commit号,可以找到commit提交所在那个分支名称;

2.搜索commit提交的标题,就可以看到相应的记录,包括id号;

3.git checkout 到该id号,就找到了该commit提交,然后通过git reset --hard就可以恢复到原先那个commit提交。

相关文章:

  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-08-29
  • 2021-11-29
  • 2021-11-07
  • 2021-05-17
  • 2021-08-24
猜你喜欢
  • 2021-05-16
  • 2022-12-23
  • 2021-04-22
  • 2021-10-16
  • 2021-08-30
  • 2021-06-15
相关资源
相似解决方案