how to restore deleted commit in git code example Example 1: how to see deleted commit git git reflog show Example 2: how to see deleted commit in git git help reflog