Single person project with 55k files in it, not pushed to any remote.
I'm gonna go ahead and assume nothing of value got lost here.
Single person project with 55k files in it, not pushed to any remote.
I'm gonna go ahead and assume nothing of value got lost here.
So a vibecoder lost their slop?
A vibecoder who doesn’t use git
They did. But if you delete your local .git repository, that won't save you.
Just pull from your forge then.
Which system calls a remote a forge?
Sometimes the remote is a forge. You don't need to have a forge to have a remote, so my wording was unnecessary specific. Gitlab, Gitea, Forgejo, Sourcehut are forges.
Most people call that a server. I’ve never heard someone use the term forge for that before.
Yes, it's a server. But these specific kind of services have been called forges since 2001. https://en.wikipedia.org/wiki/Forge_(software)
It will if you have a remote like a sane git user
That's on you then. Restore from backup and accept having lost a day's work.
I have no backup, and I must scream!
That's the new normal.
That’s the new normal.
Maybe for some but then i'm happy to be old-school. I can live with the fact not everyone can/wants to follow the 3-2-1 strategy but expect no sympathy if you have no backup's at all
That's ridiculous. Why wouldn't you just set Claude to back everything up before it deletes everything? Checkmate, atheists
Funny story about those backups
And because the damage extended to the .git project’s ‘objects,’ ‘refs’ and ‘logs’ folders, there was no way to recover the files and undo the catastrophe. The files were just gone in a puff of smoke.
No push to remote? If you’re working on something you care about you shouldn’t only have a local copy.
Backups are for smart people. Not who we're dealing with here.
Yep, make sure that you pushed somewhere on a private branch. But the new devs with their nocode-NoSQL-AI tools have a hard time understanding difficult concepts like "files" or "folders."
I can sometimes be bad about pushing my inflight work, but I start getting anxious about it once I've reached a certain point. Like I might be brushing my teeth and be like, oh shit i should push that up.
Maybe I'm old fashioned, but I feel like programming tools shouldn't blow away your checked in changes, even if you haven't pushed yet. You do you, though.
A power surge or some other force majeure could though. Push your shit off site.
But what about the data gremlins?
I learned about thst that one day…
I learned the hard way
I was going to the high school of hard knocks when they offered me a scholarship to the college of hard knocks, I TOOK IT!
My backup scheme:
Computer --> 3 different cloud drives and github.
Also
Computer --> Wyoming home NAS --> USB external drive (weekly), swapped out every year and the old one stored in a waterproof gunsafe in the basement.
Wyoming home NAS --> Florida office NAS -- > USB external drive (weekly)
Wyoming home NAS --> Austin office NAS --> Tape (monthly) --> IronMountain for 7 years.
If you are a single dev, all it takes is 14 USB sticks. 12 monthly backups and two for daily backups that you rotate weekly.
Just for my sanity, do you have to power up usb drives every so often or they corrupt?
If you mean USB sticks (thumb drives), I have a few 20 year old ones that I dust off from time to time when all I need is something small. Some have been in a drawer for years before I touched them again.
Theoretically, they need tl be re-written every few years at most. Read everything off, format and re-write. Checking for corruption would be adviasable when you do it.
Also
Good thing you added that. I'm so old-school/paranoid that I must have ownership of and physical access to the backup media to be able to count them as a backup.
My backup scheme is either Github or Google Drive, whatever I have uploaded in Discord DMs, and a snowballing pile of unorganized hoarded files, which One Day™ I will sort.
One thing you could do is buy the.largest external drive you can get on black friday sales. Then just copy everything in it. No sort. Just dump it all in there. Think of it like clearing the table unto a large garbage bag. Then unplug it, put it in the closet, and do it again whenever you remember.
Even a mess like that is better than no backup at all.
If you don't include .git/ in your backup you simply have no backup.
The .git folder is the heart of a Git repository. It is the hidden directory that Git uses to store all the information necessary for managing your project's version control history. This folder is where Git keeps track of all the changes made to your files, allowing you to revert to previous versions, collaborate with others, and maintain a complete history of your project.
Also a lesson in version control
Right? I don't get this. Run your ai in sandbox, and don't give it git access. Worst case you can stash a change.
Run your ai in sandbox, and don’t give it git access.
Enough break-in reports of AI these days ..... I would not rely on a sandbox. Air-gapped.
Wasn't that usually just improper sandboxing as well?
How much do you trust your own ability to properly sandbox?
Improper config, also no monitoring...
I mean, all those "AI ESCAPED CONTAMENTED!!!" are prolly only for hype...IIRC OpenAI said they gained internet access but how would they do it if the machine has no internet access?? Did they use a computer with a motherboard that has a wifi antenna and the password on a text file?
Idk man, it always scares me even just testing any of these things without a basic bubblewrap.
Don’t understand why anyone would give an agent control over anything.
Because they have been pushed down our throats and hailed as the messiah…
After seeing enough successes (or "successes", ymmv), people start thinking that "their" agents won't cause catastrophic damage
I had this question before, until I used IDE in agent mode (my company pushes us to use it).
And the way those agents are designed is that when I ask it do do something it eventually will want to invoke some commands.
Yes, it shows what the command will be, but it is doing it frequently and you either have option to accept, reject or accept all (stupid decision, but perhaps some get inpatient).
Then Claude also sometimes creates a script and runs that. It still shows the file name, so I can still look it up from another terminal. It is annoying, but ok.
But then I got to point where Claude asked me to run python that took the script from stdin, and there was no way for me to see what it was. Of course I noped out and rejected it, but I can see someone else might not realize that this invocation is dangerous. And I think if you use it every day and do nothin than vibe coding the "accept all" button might seem very appealing.
This whole thing is going crazy, recently my company suggested that reviews are bottleneck and maybe we don't need to do reviews instead use unit and functional tests (also created by copilot, LOL).
This is really shitty time for people that prided themselves in producing quality code.
There are developers who still don’t use source control?
It said it also deleted it from his Git repo, but it seemed not to be remote
It can delete .git.
That doesn't delete the repo, you'll just access your remote and pull it down again
Since recently, agents started complaining about not having force push privilege
top 99 comments