Git reflog

log of the changes of position of HEAD

"history" of the user's actions

Git reflog


git reflog

Git reflog


each hash is a commit and can be acted with as such:
- git show
- git log/git history
- git checkout
- git reset
- ...

Git reflog

What is the use?

When a branch is "messed up" and some commits are "lost", for example:

Failed rebase

Accidental reset

Git reflog


Made with