this post was submitted on 20 Nov 2024
906 points (97.6% liked)
Programmer Humor
19697 readers
97 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Here is the exact warning that a user had to click through in order to get to where they got:
Hm ok yeah, that seems quite scary sounding so that i would strongly hesitate before clicking on "discard ALL changes". Still, I wonder if a second confirmation dialog with more information is warranted for a command that's so destructive.
I wouldn't assume "discard changes" means "delete files that existed before the editor did".
It's not that. It means discard all changes made after the last change committed to this local repository.
In this case it seems like it also performed a
git clean
and deleted his untracked files too. Someone actually opened a an issue to try and prevent the behaviour in the future