我正在学习git,并使用了git reflog
命令。我有个疑问。当我运行它时,对于某些条目,我会看到HEAD->master
提交哈希之后的内容。但它并不是写在所有提交的前面。我的问题是,这有任何意义吗?为什么它只发生在某些地方而不是所有提交?
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
我添加了一个示例代码来说明我的意思。如果这些信息不充分,请告诉我。我会添加更多