git fsck --lost-found
I didn’t set user name and email before a commit and I couldn’t remember that command for re-writing author information, so I used a git reset to undo the commit. I then realized I missed the revision I meant to hit. I could have done a lot of resets based on the reflog, but this was more clear in providing refids that I could diff until I found the set I meant to have.
updated: 2022-12-15 19:08:26
generated: 2024-05-25