"git reflog show <ref>" 应该显示什么?

What should "git reflog show <ref>" show?

我有两个分支,master 和 b1。当我在 b1 上时,'git reflog show' 显示对 b1 的所有更改。但是,在我切换到 master 和 运行 'git reflog show b1' 之后,它显示的内容有所不同。 'git reflog' 的联机帮助页没有解释 arg 如何影响输出。

显示<ref>的历史。如果未提供 <ref>,则显示 HEAD 的历史记录。请注意,这 不是 HEAD 指向 的内容,而是 HEAD 本身。因此,当您在 b1 上执行 git reflog show 时,它显示的是 HEAD 的历史记录,而不是 b1。当您执行 git reflog show b1 时,它会显示 b1 的历史记录。这就是差异的来源。