this post was submitted on 20 Nov 2024
755 points (97.6% liked)

Programmer Humor

19645 readers
2374 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
755
submitted 20 hours ago* (last edited 20 hours ago) by [email protected] to c/programmer_humor
you are viewing a single comment's thread
view the rest of the comments
[–] Michal 3 points 4 hours ago (2 children)

If the files were already staged then git should have blobs in the git folder, so they should be recoverable.

[–] [email protected] 1 points 30 minutes ago

Sounds like they weren't even using version control, and had no business anywhere near a project that size.

[–] [email protected] 13 points 3 hours ago (1 children)

Looks like they weren't staged. He clicked on the staging option, it showed it would stage thousands of files, he said "hey I should fix my .gitignore" and clicked on what looked like either a "don't stage" or a "forget" button, and it was a "checkout --force" button.

The most impressive thing is all the people doubling down on the idea that a "checkout --force" button in a main interaction screen is a great idea, there's nothing wrong with the software, and the user is a moron.

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

"discard changes" button - the 5000 "new file created" changes, specifically.