One thing that is not made clear in the article, is that there is a separate reflog for HEAD, and separate reflogs for individual branches.
HEAD reflog logs changes such as "checkout: moving from next to main". Branch reflog logs changes such as "branch: Created from HEAD" (first entry in branch reflog). Most are common to both (i.e. git logs both to HEAD reflog and the reflog of currently checked out branch).
4 Comments
swunchy@lemm.ee · 8 pts · 2y
I know when I have to go to the reflog that I've really fucked up
sik0fewl@kbin.social · 2 pts · 2y
You haven't really fucked up until you've run garbage collection.
jnareb@programming.dev · 4 pts · 2y
One thing that is not made clear in the article, is that there is a separate reflog for HEAD, and separate reflogs for individual branches.
HEAD reflog logs changes such as "checkout: moving from next to main". Branch reflog logs changes such as "branch: Created from HEAD" (first entry in branch reflog). Most are common to both (i.e. git logs both to HEAD reflog and the reflog of currently checked out branch).
onlinepersona@programming.dev · 3 pts · 2y
Learned something new today. Thank you.