logoalt Hacker News

jsnelllast Saturday at 6:08 PM2 repliesview on HN

You're correct for an actual git revert, but it seems pretty clear that the original authors have mangled the story and it was actually either a "git checkout" or "git reset". The "file where 1-2 hours of progress had been accumulating" phrasing only makes sense if those were uncommitted changes.

And the reason jj helps in that case is that for jj there is no such thing as an uncommitted change.


Replies

MarkMarinelast Saturday at 7:35 PM

Also JJ undo is there and easy to tell the model to use, I have it in my Claude.md

show 1 reply
block_daggerlast Saturday at 7:04 PM

Having no such thing as an uncommitted change seems like it would be a nightmare, but perhaps I'm just too git-oriented.

show 2 replies