git-reflog.md git reflog についてまとめてみる reflog とは reflog(参照ログ)とは HEAD やブランチ先端の動きの履歴 各個人のローカルリポジトリに存在 ブランチの切り替え、新たに加えられた変更のプル、履歴の書き換え、あるいは単なる新規コミットの実行などを記録 git reflog で HEAD の移動履歴を、git reflog <ブランチ名> でそのブランチ先端が指していたコミットの一覧を確認可能 HEAD@{5}: HEAD の五つ前の状態を示す $ git reflog d22bfa0 HEAD@{0}: commit (amend): Add the contens of poem-c 8c9300c HEAD@{1}: commit: Add the contens of poem-c 6a67f31 HEAD@{2}: commit:
![`git reflog` についてまとめてみる](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)