Hacker News new | ask | show | jobs
by svnt 19 days ago
> This might result in some very messy situations.

It doesn’t. Claude is far better and faster at this than anyone I’ve met in person. And you can work in any part of the source as though you were working alone, with all the numerous benefits of git.

Why would you not just try it on a disposable repo instead of continuing in fear? The thing about git is it is actually very very hard to do something that destroys anything because it is distributed. Make a repo. Clone it to two places. Do whatever you want including things that force push and overwrite history in origin. Then restore it from the other repo you cloned.

2 comments

I’ve had work semi-regularly wiped out by highly regarded open models in recent months even when I hadn’t asked it to do anything with git - it will try to check a previous version of a file or stash something but get a parameter wrong. A large part of my AGENTS.md now is just listing out all git verbs that could be destructive and telling it to avoid them. Maybe Claude doesn’t have that issue though yes.
> Clone it to two places.

Failing to do this is not "very, very" hard

You’re not wrong in normal use as an individual for a demo, but this condition being met is the only way it achieves being distributed.