Yeah learned this the hard way.

you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 1 year ago

I only use it when I've royally messed up and the commit I need to get back is no longer referenced anywhere. Accidentally deleted a branch, finished a merge or rebase before realizing I messed up, that kind of thing, just use the reflog to find it again, get a branch pointing to it, then try again.

  • source
  • parent