Git reflog

log of the changes of position of HEAD

"history" of the user's actions

Git reflog

Usage

git reflog

Git reflog

Example

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

Exercises

Git reflog - The developer's safety net

By Ghislain Rodrigues

Git reflog - The developer's safety net

  • 135
Loading comments...

More from Ghislain Rodrigues