logoalt Hacker News

mbb70last Saturday at 6:02 PM1 replyview on HN

Probably it actually ran git checkout or reset. As you say git revert only operates on committed snapshots so it will all be in the reflog


Replies

ewoodrichlast Saturday at 7:26 PM

Yes, this exact scenario has happened to me a couple times with both Claude and Codex, and it's usually git checkout, more rarely git reset. They immediately realize they fucked up and spend a few minutes trying to undo by throwing random git commands at it until eventually giving up.

show 1 reply