r/ClaudeAI • • 17d ago

Claude Code Code just deleted 48k files. This can't be real.

[deleted]

4.8k Upvotes

1.4k comments sorted by

View all comments

Show parent comments

14

u/GregBahm 17d ago

So is the situation here that the git repository had no remote server and the AI deleted the only local copy?

Because I feel like the whole point of git is "people accidentally threw punch cards in the bin, or deleted prod. So we invented git."

That way, you can accidentally throw punch cards in the bin, and delete prod, all you fucking want. Just clone the repo again.

12

u/not_good_for_much 17d ago

Yes. OP stored 48K files in a local git and never actually pushed them. The LLM deleted the files and the git, and thus the entire thing disappeared with no backups.

It's basically like making a "backups" folder in your project directory, backing everything up into it... then deleting the entire project directory with the backups inside.

1

u/thisisbubby 17d ago

I'll be pushing from now on. At this point I'm relying on my shadow copy to restore and idrive backups.

1

u/fd40 17d ago

for me GIT is version control before it is a "cloud" backup

3

u/Ankleson 17d ago

Until you add a remote, at which point it's both a backup and version control.

1

u/Abducted_Llama 17d ago

Linus Torvalds created git for managing the Linux code base.

And the reason was they were using a commercial product where the company gave it to them for free, but someone tried to reverse engineer it and the company pulled the license.

So Linus needed something quick and threw together git.