logoalt Hacker News

dwedgetoday at 8:03 AM1 replyview on HN

First time I used Claude I asked it to look at the current repo and just tell me where the database connection string was defined. It added 100 lines of code.

I asked it to undo that and it deleted 1000 lines and 2 files


Replies

exceptionetoday at 9:10 AM

Would `git reset --hard` have worked to in your case? I guess you want to have each babystep in a git commit, in the end you could do a `git rebase -i` if needed.

show 2 replies