我之前曾问过this,但我已将其关闭,因为它与git log
的同一问题密切相关。现在我有一个类似的问题,为什么git reflog显示'不同的HEAD日志列表'?
如果我使用键盘下降,我会从HEAD0一直看到HEAD 247,这是我clone
我的回购。这听起来非常合乎逻辑且易于理解我看到另一个很长的清单,从HEAD 1到HEAD 225&然后另一个是从HEAD0到HEAD 225,然后是从HEAD0到HEAD 90的另一个。为什么有各种版本的历史记录?或者他们完全是别的什么?
Bash输出示例
7136d2c HEAD@{0}: checkout: moving from master to master
7136d2c HEAD@{1}: checkout: moving from xhh994 to master
7136d2c HEAD@{2}: merge master: Fast-forward
f50e2ef HEAD@{3}: checkout: moving from master to xhh994
// Lots of more lines
7136d2c HEAD@{90}: pull upstream master: Fast-forward
7136d2c HEAD@{0}: checkout: moving from master to master
7136d2c HEAD@{1}: checkout: moving from xhh994 to master
7136d2c HEAD@{2}: merge master: Fast-forward
f50e2ef HEAD@{3}: checkout: moving from master to xhh994
// Lots of more lines
7136d2c HEAD@{225}: pull upstream master: Fast-forward
7136d2c HEAD@{0}: checkout: moving from master to master
7136d2c HEAD@{1}: checkout: moving from xhh994 to master
7136d2c HEAD@{2}: merge master: Fast-forward
f50e2ef HEAD@{3}: checkout: moving from master to xhh994
// Lots of more lines
7136d2c HEAD@{225}: pull upstream master: Fast-forward
7136d2c HEAD@{0}: checkout: moving from master to master
7136d2c HEAD@{1}: checkout: moving from xhh994 to master
7136d2c HEAD@{2}: merge master: Fast-forward
f50e2ef HEAD@{3}: checkout: moving from master to xhh994
// Lots of more lines
7136d2c HEAD@{247}: clone from: github.mycompany.com/myproject
为什么我不能只看到:
7136d2c HEAD@{0}: checkout: moving from master to master
7136d2c HEAD@{1}: checkout: moving from xhh994 to master
7136d2c HEAD@{2}: merge master: Fast-forward
f50e2ef HEAD@{3}: checkout: moving from master to xhh994
// Lots of more lines
7136d2c HEAD@{247}: clone from: github.mycompany.com/myproject