this post was submitted on 03 Jul 2025
94 points (93.5% liked)

Programmer Humor

36992 readers
214 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

As the title says. I put the wrong value inside a clean up code and I wiped everything. I did not push any important work. I just want to cry but at least I can offer it to you.

Do not hesitate to push even if your project is in a broken state.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 23 hours ago (3 children)

You guys don't use a COW (copy on write) filesystem?

[–] [email protected] 10 points 23 hours ago (2 children)

Version control would be quite adequate if using a sane amount of time between pushes

[–] [email protected] 6 points 20 hours ago

Except that one is automatically versioned and would have saved you this pain, and the other relies on you actively remembering to reflexively commit, and then do extra work to clean up your history before sharing, and once you push, it's harder to change history and make a clean version to share.

These days, there's little excuse to not use COW with automated snapshots in addition to your normal, manual, VCS activities.

[–] [email protected] 3 points 23 hours ago* (last edited 23 hours ago)

I'm paranoid. I have like 5 different ways (including 3-2-1 backups) to restore everything. COW fs is great for stuff that is not a git-able project.