【发布时间】:2013-03-03 19:18:39
【问题描述】:
有人可以帮我理解这里发生了什么吗?
我从git log --oneline 开始,它吐出:
4df9421 (HEAD, master) moved some aliases around
d3810e4 (origin/master) some terminal color changes
a7182d3 git colors, ignores, etc.
995fe8c added gitconfig, moved some personal stuff out of the public repo
8a100b7 misc unimportant updates
55d2c08 added a fix to "open with", refactored
7ec7d83 Removed some vim colors; added a couple searching aliases
330c7fc Minor updates
44e80a1 Added vim files
48537c6 Fixed some formatting problems
14933a2 Initial Commit
然后我执行git reset --hard 330c7fc 将日志返回到:
330c7fc (HEAD, master) Minor updates
44e80a1 Added vim files
48537c6 Fixed some formatting problems
14933a2 Initial Commit
到目前为止一切顺利,但是(现在我已经重置)当我做git log --oneline --all 时,我得到:
d3810e4 (origin/master) some terminal color changes
a7182d3 git colors, ignores, etc.
995fe8c added gitconfig, moved some personal stuff out of the public repo
8a100b7 misc unimportant updates
55d2c08 added a fix to "open with", refactored
7ec7d83 Removed some vim colors; added a couple searching aliases
330c7fc (HEAD, master) Minor updates
44e80a1 Added vim files
48537c6 Fixed some formatting problems
14933a2 Initial Commit
请注意,此列表中缺少最新条目“4df9421 移动了一些别名”。
我的理解是--all 选项应该显示所有提交。为什么在我恢复到较早的提交后会丢失最新的?
谢谢。
【问题讨论】:
标签: git