this post was submitted on 20 Nov 2024
691 points (97.4% liked)

Programmer Humor

19616 readers
2191 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
691
submitted 18 hours ago* (last edited 18 hours ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 6 points 4 hours ago (1 children)

This user was not using git though, he was using vs code. That button doesn't say "git reset" it says "discard all changes". And btw, what it does is "git clean", which is something that git can do.

Just below the button there is a list of all the changes. In his case, there were 3000 changes of the type "file creation". Discarding a file creation can only be made one way: deleting the file.

Anyway, this user is presumably in his learning phase, I would not assume that he knows what git reset or git restore actually do.

[โ€“] [email protected] 3 points 3 hours ago

In other IDEs this discards tracked changes, untracked files usually stay untouched.

In my opinion, it's a combination of user error and bad implementation here