Comment by dwedge
16 days ago
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
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.
Bam, now it did git reset --soft [initial commit] and force pushed to origin
Without git I would have been screwed. AI doesn't commit anything, I do when I'm satisfied
Ah, so you have not yet been forced to tell it DO NOT AMEND THE LAST COMMIT
6 replies →
One annoying thing about that flow is that when you change the world outside the model it breaks its assumptions and it loses its way faster (in my experience).
And accuses you of being a linter
1 reply →