誰かがここで何が起こっているのかを理解するのを手伝ってもらえますか?
私は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
オプションはすべてのコミットを表示する必要があります。以前のコミットに戻すと、最新のものが見つからないのはなぜですか?
ありがとう。