操作履歴から復旧する- git reflog
HEAD の移動履歴(リフログ)を表示し、誤操作からの復旧に使います。
概念図
構文
bash
git reflog [options] [<ref>]使用例
HEADの移動履歴を表示
bash
git reflog相対日時付きで表示
bash
git reflog --date=relative特定ブランチの reflog を表示
bash
git reflog show feature/loginHEAD の移動履歴(リフログ)を表示し、誤操作からの復旧に使います。
git reflog [options] [<ref>]HEADの移動履歴を表示
git reflog相対日時付きで表示
git reflog --date=relative特定ブランチの reflog を表示
git reflog show feature/login