


For reference, I'm an ordinary person. I've just used linux for a long time....
I've been making games with claude for about 5 months since the end of last year..(Just.. not a plumber, so I'm pushing it through with determination...)
But earlier, while working, I accidentally pasted something and deleted my entire project folder with rm -rf...(Ugh)
I use ubuntu 22.04. I'm an xfs user.
First, I pressed reset.
I booted into ubuntu live.
I installed xfsprogs, xfsdump, and tcl with apt.
I installed xfs_undelete from the internet.
I downloaded tcllibs as a deb file from the internet and installed it with dpkg.
I recovered files deleted within an hour with xfs_undelete (they need to be recovered to another storage, not the deleted disk).
I was working on the project with claude. After committing the last work with claude, I exited the claude cli and tried to do other work outside, and this incident happened.
Anyway, it might work (the recovered files were 26G with unknown filenames), so I launched resume on the claude cli. And I gave instructions like this, telling it the directory where the recovered files are located.
"I accidentally deleted the project files. I managed to recover them somehow, but it was only a linear recovery. The recovered files are in /mnt/XXX. Please use memory and codex as much as possible to proceed with file recovery"
"Record the recovered files and the unrecovered files separately and proceed to recover up to the last one"
And...... I committed it with git.... Really, I think this is the best thing I've ever done... It's recovering like crazy.
It seems that most of the project-related things will be recovered.......
For those who use linux as their main OS... Be sure to use git... Even if you're not programming, be sure to use git... I highly recommend it.... Even if it's not git push, it makes sense.... It's the real deal.