git reflog 命令什么时候显示 HEAD->master 什么时候不显示

When does git reflog command show HEAD->master and when not

我正在学习git,并使用了git reflog命令。我有个疑问。当我 运行 它时,对于某些条目,我看到 HEAD->master 写在提交哈希之后。但是并没有写在所有commit的前面。我的问题是,这有什么意义吗?为什么它只发生在某些地方而不是所有提交?

930f601 (HEAD -> master) HEAD@{0}: checkout: moving from b161f2ced6e956e362b39fbd091d397e1cc96503 to master
b161f2c HEAD@{1}: checkout: moving from master to b161f2ced6e956e362b39fbd091d397e1cc96503
930f601 (HEAD -> master) HEAD@{2}: checkout: moving from 4900500a6723ff01c631bff19a77ec45e2559349 to master
4900500 HEAD@{3}: checkout: moving from master to 4900500a6723ff01c631bff19a77ec45e2559349
930f601 (HEAD -> master) HEAD@{4}: reset: moving to 930f601b14d7051b7b97b1a98bd663ff272f5392
4900500 HEAD@{5}: commit: added more lines to file 1
930f601 (HEAD -> master) HEAD@{6}: commit: modified file 1
b161f2c HEAD@{7}: commit: added content to file
18d0dcc HEAD@{8}: commit (initial): added file 1

我添加了示例代码来说明我的意思。如果此信息不充分,请告诉我。我再补充

叫做装饰品

git reflog show(默认模式)accepts log options.

碰巧有标签或分支(或 HEAD)指向它们的提交默认配置具有这些装饰,但您可以为大多数类型的输出设置打开或关闭它,例如 git log(选项--decorate, and config log.decorate)。