💾 Archived View for thatit.be › 2022-12-15-19-05-12.gmi captured on 2024-12-17 at 09:56:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-09-29)

🚧 View Differences

-=-=-=-=-=-=-

finding orphaned commits in git

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.

Tags

#git

Navigation

index

tags

created: 2022-12-15

(re)generated: 2024-12-17